This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18901] Type of 'new (T*) [n]'
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Dec 2004 12:59:10 -0000
- Subject: [Bug c++/18901] Type of 'new (T*) [n]'
- References: <20041209100220.18901.wolfgang.roehrl@de.gi-de.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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