This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/2123] Array initializer


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]