[Bug c++/25811] No failure creating a POD containing a const member, using new without a new-initializer.

fabien dot chene at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 31 13:46:00 GMT 2010



------- Comment #11 from fabien dot chene at gmail dot com  2010-03-31 13:46 -------
(In reply to comment #10)
> Thanks. I can't test it now but that looks better.
> 
> Just below your new code I see this error:
> 
>     error ("uninitialized const in %<new%> of %q#T", elt_type);
> 
> Maybe your new diagnostics should also include 'new' like that.

Would 'error ("uninitialized const member in %q#T using %<new%>", elt_type)'
suit you ?


-- 


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



More information about the Gcc-bugs mailing list