This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44499] No default constructor available
- From: "dirtyepic at gentoo dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Mar 2011 11:36:37 +0000
- Subject: [Bug c++/44499] No default constructor available
- Auto-submitted: auto-generated
- References: <bug-44499-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44499
--- Comment #16 from Ryan Hill <dirtyepic at gentoo dot org> 2011-03-17 11:36:15 UTC ---
(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;