Gianni Mariani wrote:
> I suspect the OP meant as you pointed out in the other post.
>
> new int*[M]
>
> It's interesting that GCC actually gives an interesting message.
I'd be surprised if an interesting message would not be interesting
> xxx.cpp: In function `int main()':
> xxx.cpp:7: error: array bound forbidden after parenthesized type-id
> xxx.cpp:7: note: try removing the parentheses around the type-id
So gcc seems to have understood what you wanted to do, but rejects it
because it's not allowed.