[Bug c++/48859] [4.6/4.7 Regression] incorrect "uninitialized const member" error on new without new-initializer
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 4 12:35:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48859
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-04 12:33:38 UTC ---
(In reply to comment #0)
>
> The workaround, of course, is to define the empty default constructor in
> ConstMember.
Or simply add an empty new-initializer, which works when you can't change the
definition of ConstMember
More information about the Gcc-bugs
mailing list