http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48255
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-23 15:55:36 UTC --- t.C:5:6: error: no matching function for call to ‘A::A(int)’ t.C:1:8: note: candidates are: A::A() t.C:1:8: note: A::A(const A&) your code example is rejected as it should.