Skip to content

Commit 6a5edb7

Browse files
jensmaurerzygoloid
authored andcommitted
Harmonize punctuation for 'ill-formed, no diagnostic required'
Fixes #1450.
1 parent 40f3fb3 commit 6a5edb7

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

source/declarations.tex

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@
891891
an invocation of the function or constructor could be an evaluated subexpression of a core
892892
constant expression~(\ref{expr.const}), or,
893893
for a constructor, a constant initializer for some object~(\ref{basic.start.static}),
894-
the program is ill-formed; no diagnostic required.
894+
the program is ill-formed, no diagnostic required.
895895
\begin{example}
896896
\begin{codeblock}
897897
constexpr int f(bool b)
@@ -923,8 +923,7 @@
923923
expression. If no specialization of the template would satisfy the
924924
requirements for a constexpr function or constexpr constructor
925925
when considered as a non-template function or constructor, the template is
926-
ill-formed; no diagnostic
927-
required.
926+
ill-formed, no diagnostic required.
928927

929928
\pnum
930929
A call to a constexpr function produces the same result as a call to an equivalent
@@ -3827,7 +3826,7 @@
38273826
struct S { int x; } s, *p = &s;
38283827

38293828
// Translation unit \#2:
3830-
struct alignas(16) S; // error: definition of \tcode{S} lacks alignment; no diagnostic required
3829+
struct alignas(16) S; // error: definition of \tcode{S} lacks alignment, no diagnostic required
38313830
extern S* p;
38323831
\end{codeblock}
38333832
\end{example}
@@ -3881,7 +3880,7 @@
38813880
parameters is declared with the \tcode{carries_dependency} attribute in its first declaration in one
38823881
translation unit and the same function or one of its parameters is declared without the
38833882
\tcode{carries_dependency} attribute in its first declaration in another translation unit, the
3884-
program is ill-formed; no diagnostic required.
3883+
program is ill-formed, no diagnostic required.
38853884

38863885
\pnum
38873886
\begin{note} The \tcode{carries_dependency} attribute does not change the meaning of the
@@ -4120,7 +4119,7 @@
41204119
specify the \tcode{noreturn} attribute if any declaration of that function specifies the
41214120
\tcode{noreturn} attribute. If a function is declared with the \tcode{noreturn} attribute in one
41224121
translation unit and the same function is declared without the \tcode{noreturn} attribute in another
4123-
translation unit, the program is ill-formed; no diagnostic required.
4122+
translation unit, the program is ill-formed, no diagnostic required.
41244123

41254124
\pnum
41264125
If a function \tcode{f} is called where \tcode{f} was previously declared with the \tcode{noreturn}

source/overloading.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3303,7 +3303,7 @@
33033303
\term{literal suffix identifier}.
33043304
Some literal suffix identifiers are reserved for future standardization;
33053305
see~\ref{usrlit.suffix}. A declaration whose \grammarterm{literal-operator-id} uses
3306-
such a literal suffix identifier is ill-formed; no diagnostic required.
3306+
such a literal suffix identifier is ill-formed, no diagnostic required.
33073307

33083308
\pnum
33093309
A declaration whose \grammarterm{declarator-id} is a

source/special.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@
16901690
The target constructor is selected by overload resolution.
16911691
Once the target constructor returns, the body of the delegating constructor
16921692
is executed. If a constructor delegates to itself directly or indirectly,
1693-
the program is ill-formed; no diagnostic is required. \begin{example}
1693+
the program is ill-formed, no diagnostic required. \begin{example}
16941694

16951695
\begin{codeblock}
16961696
struct C {

source/templates.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,8 +1126,8 @@
11261126
\grammarterm{template-parameter}
11271127
is instantiated.
11281128
If a specialization is not visible at the point of instantiation,
1129-
and it would have been selected had it been visible, the program is ill-formed;
1130-
no diagnostic is required.
1129+
and it would have been selected had it been visible, the program is ill-formed,
1130+
no diagnostic required.
11311131
\begin{example}
11321132

11331133
\begin{codeblock}
@@ -2719,8 +2719,8 @@
27192719
compare expressions involving
27202720
template parameters.
27212721
If a program contains declarations of function templates that are
2722-
functionally equivalent but not equivalent, the program is ill-formed;
2723-
no diagnostic is required.
2722+
functionally equivalent but not equivalent, the program is ill-formed,
2723+
no diagnostic required.
27242724

27252725
\pnum
27262726
\begin{note}

0 commit comments

Comments
 (0)