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 #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;


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