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;

Reply via email to