File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1578
1578
struct derived;
1579
1579
struct base {
1580
1580
friend struct derived;
1581
- private:
1581
+ private:
1582
1582
base();
1583
1583
};
1584
1584
struct derived : base {};
1585
1585
1586
- derived d1{}; // Error. The code was well-formed before.
1586
+ derived d1{}; // error: the code was well-formed before.
1587
1587
derived d2; // still OK
1588
1588
\end {codeblock }
1589
1589
Original file line number Diff line number Diff line change 1466
1466
-> decltype((h<T>())); // does not force completion of \tcode {A<T>}; \tcode {A<T>::\~ {}A()} is
1467
1467
// not implicitly used within the context of this \grammarterm {decltype-specifier}
1468
1468
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
1470
1470
// selects the specialization `` \tcode {q(T) -> decltype((h<T>())) [with T=int]}'' .
1471
1471
// The return type is \tcode {A<int>}, so a temporary is introduced and its
1472
1472
// destructor is used, so the program is ill-formed.
3851
3851
struct alignas(8) S {};
3852
3852
struct alignas(1) U {
3853
3853
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
3855
3855
// if the \tcode {alignas(1)} were omitted.
3856
3856
\end {codeblock }
3857
3857
\end {example }
Original file line number Diff line number Diff line change 2275
2275
struct B { };
2276
2276
struct D : private B { };
2277
2277
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.
2280
2280
}
2281
2281
\end {codeblock }
2282
2282
\end {example }
You can’t perform that action at this time.
0 commit comments