This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115d. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2024-10-26
The following example illustrates an incompatibility between C++11 and C++14:
struct S { int m = 1; }; // C++11: S is non-aggregate // C++14: S is AGGREGATE struct X { operator int(); operator S(); }; int main() { X a{}; S b{a}; // C++11: valid, copy constr S(a.operator S()) is called here // C++14: valid, aggregate initialization { a.operator int() } printf("%d\n", b.m); }
This should be documented in Annex Clause Annex C [diff].
Notes from the May, 2015 meeting:
This will be handled editorially; the status has been set to "review" to check that the editorial change has been made.