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 15781578struct derived;
15791579struct base {
15801580 friend struct derived;
1581- private:
1581+ private:
15821582 base();
15831583};
15841584struct derived : base {};
15851585
1586- derived d1{}; // Error. The code was well-formed before.
1586+ derived d1{}; // error: the code was well-formed before.
15871587derived d2; // still OK
15881588\end {codeblock }
15891589
Original file line number Diff line number Diff line change 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}
14681468void 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.
38513851struct alignas(8) S {};
38523852struct 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 }
Original file line number Diff line number Diff line change 22752275struct B { };
22762276struct D : private B { };
22772277void 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 }
You can’t perform that action at this time.
0 commit comments