[Bug c++/2123] Array initializer

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Wed Nov 12 15:18:00 GMT 2003


------- Additional Comments From bangerth at dealii dot org  2003-11-12 15:18 -------
Apparently only part of the new-initializer syntax has been removed.
Of this example,
----------------------
int* pa = new int[10](5);
int* pb = new int[10] = {5};
----------------------
the first line still compiles, while the second now gives an
error. Both were allowed in 2.95, whereas the second was
deprecated in 3.0 and removed in 3.3.

W.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-12 15:18:23
               date|                            |


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



More information about the Gcc-bugs mailing list