Skip to content

Commit ebdef95

Browse files
committed
Rebase; Change Error: to error:
1 parent 53a958b commit ebdef95

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

source/compatibility.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,12 +1578,12 @@
15781578
struct derived;
15791579
struct base {
15801580
friend struct derived;
1581-
private:
1581+
private:
15821582
base();
15831583
};
15841584
struct derived : base {};
15851585

1586-
derived d1{}; // Error. The code was well-formed before.
1586+
derived d1{}; // error: the code was well-formed before.
15871587
derived d2; // still OK
15881588
\end{codeblock}
15891589

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@
14661466
-> decltype((h<T>())); // does not force completion of \tcode{A<T>}; \tcode{A<T>::\~{}A()} is
14671467
// not implicitly used within the context of this \grammarterm{decltype-specifier}
14681468
void r() {
1469-
q(42); // Error: deduction against \tcode{q} succeeds, so overload resolution
1469+
q(42); // error: deduction against \tcode{q} succeeds, so overload resolution
14701470
// selects the specialization ``\tcode{q(T) -> decltype((h<T>())) [with T=int]}''.
14711471
// The return type is \tcode{A<int>}, so a temporary is introduced and its
14721472
// destructor is used, so the program is ill-formed.
@@ -3851,7 +3851,7 @@
38513851
struct alignas(8) S {};
38523852
struct alignas(1) U {
38533853
S s;
3854-
}; // Error: \tcode{U} specifies an alignment that is less strict than
3854+
}; // error: \tcode{U} specifies an alignment that is less strict than
38553855
// if the \tcode{alignas(1)} were omitted.
38563856
\end{codeblock}
38573857
\end{example}

source/expressions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2275,8 +2275,8 @@
22752275
struct B { };
22762276
struct D : private B { };
22772277
void f() {
2278-
static_cast<D*>((B*)0); // Error: B is a private base of D.
2279-
static_cast<int B::*>((int D::*)0); // Error: B is a private base of D.
2278+
static_cast<D*>((B*)0); // error: B is a private base of D.
2279+
static_cast<int B::*>((int D::*)0); // error: B is a private base of D.
22802280
}
22812281
\end{codeblock}
22822282
\end{example}

0 commit comments

Comments
 (0)