--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-17
03:20 ---
GCC is correct to reject new (T*)[n]. GCC is also correct to say the type of
new T*[n] is T**.
Though ICC accepts both of them.
--
What|Removed |Added
--- 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
--- Additional Comments From wolfgang dot roehrl at de dot gi-de dot com
2004-12-09 16:15 ---
Subject: Antwort: Type of 'new (T*) [n]'
Hi all,
I am responding to the Comments From giovannibajo at libero dot it
2004-12-09 12:59 (Bug report 18901):
The expression 'new (int*)[3]'