In particular, the following and similar examples will compile: class X { X() = default; // Should be private }; int main() { X x; } Tested with GCC Explorer.
dup *** This bug has been marked as a duplicate of bug 56429 ***