This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32402] Error while allocating array of pointers to objects of a pure virtual class
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Oct 2010 17:21:07 +0000
- Subject: [Bug c++/32402] Error while allocating array of pointers to objects of a pure virtual class
- Auto-submitted: auto-generated
- References: <bug-32402-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32402
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-10-28 17:21:03 UTC ---
(N.B. this now gets the bogus warning from PR 46159)
Grammatically:
new (pure (*[3]));
is a new-expression, with type-id "pure(*[3])"
that type-id has type-specifier-seq "pure" and abstract-declarator "(*[3])"
that abstract-declarator is a direct-abstract-declarator, with an
abstract-declarator of "*[3]" which is a ptr-operator and an
abstract-declarator of "[3]"
So I think it's syntactically valid