PR c++/28511

Fabien CHÊNE fabien.chene@gmail.com
Wed Mar 31 08:26:00 GMT 2010


Hello,

The problem is that gcc incorrectly accepts default-initialization of
const members and references members, when using the operator new
without the new-initializer.
I 've added a check in build_new_1 to fix that early so that 'new A'
can be rejected (without assigning it).

bootstrapped and regtested on x86_64-unknown-linux-gnu against trunk.

-- 
Fab
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr25811.patch
Type: application/octet-stream
Size: 4038 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100331/103d7061/attachment.obj>


More information about the Gcc-patches mailing list