* [tree-ssa] C++ parsing bug?
@ 2003-12-04 20:19 Kedar Namjoshi
0 siblings, 0 replies; only message in thread
From: Kedar Namjoshi @ 2003-12-04 20:19 UTC (permalink / raw)
To: gcc
I'm seeing the following strange behavior with the tree-ssa C++ parser
(g++ (GCC) 3.5-tree-ssa 20031203 (merged 20031130)). Could someone explain
whether this is a bug with the new parser or a new C++ standard requirement?
thanks!
- Kedar
//======================== foo.cc ====================================
// declaring an array of size 4, each element is a pointer to int.
typedef int *INTP;
int main()
{
// this FAILS with the tree-ssa parser with the message
// "foo.cc:10: error: expected `,' or `;'", but passes with g++ version 3.3.1
int **p = new (int*) [4];
// this seemingly equivalent definition passes on both versions
int **r = new INTP [4];
// this passes on both versions as well
int **q = new int *[4];
}
//=====================================================================
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-04 20:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-04 20:19 [tree-ssa] C++ parsing bug? Kedar Namjoshi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).