http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57588
--- Comment #5 from Daniel Krügler <daniel.kruegler at googlemail dot com> --- (In reply to Jonathan Wakely from comment #2) > Although shouldn't it fail to compile, due to private destructor and copy > constructor? I agree, it should fail. Interesting is, that the code compiles even when I use --no-elide-constructors.