This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/44499] No default constructor available


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44499

--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-17 11:45:35 UTC ---
(In reply to comment #16)
> (In reply to comment #11)
> > GCC 4.4 and 4.5 reject the example too, so I don't know when the bug was fixed,
> > it's apparently not a change in 4.6 (though there were some bugs in this area
> > fixed recently.)
> 
> Hmm, that particular example does fail.  But we've still been seeing this in
> packages such as xulrunner and openjade that are fine with 4.5, so some
> variation of the example is a new error.  eg. this only fails with 4.6:
> 
>   struct A { int a; A (); };
>   struct B : public A { };
>   const B b;

Yup, that fails with 4.6, as it should. It's also rejected by EDG and Clang,
but not VC++

OK, I'll update the changes page with a variation of the note in comment 11,
but upstream should still read the standard and deal with it ;)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]