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++/18901] Type of 'new (T*) [n]'


------- Additional Comments From giovannibajo at libero dot it  2004-12-09 12:59 -------
My understanding is that both the expressions are ill-formed, because you 
cannot use the parentesis around the type-id in a new-array expression.

GCC 3.4 and above correctly rejects both lines. There is an entry about this in 
http://gcc.gnu.org/gcc-3.4/changes.html.

Do you agree with this or am I missing something?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |WAITING


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


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