This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/32402] Error while allocating array of pointers to objects of a pure virtual class


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]