[Bug c++/54984] [4.6/4.7/4.8 Regression] Array allocated with new in a template class is default initialised

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 25 23:43:00 GMT 2012


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-25 23:43:30 UTC ---
In the broken template case, both for 'new char[size]' and 'new char[size]()',
in build_raw_new_expr, init is non-NULL and VEC_empty (tree, init) is true.
This can't be right.



More information about the Gcc-bugs mailing list