------- Comment #3 from neil at daikokuya dot co dot uk 2006-09-19 13:04 ------- Subject: Re: [4.2 Regression] Strictly conforming code rejected
joseph at codesourcery dot com wrote:- > > foo.c:1: error: '[*]' not allowed in other than a declaration > > As the diagnostic indicates, "unsigned int [*]" is not a declaration with > function prototype scope but a type name. Feel free to submit a DR > regarding the exact meaning of "can only be used in declarations with > function prototype scope". I'm quite happy my reading is correct, thanks, but don't let me stop you. I'd be interested in why you believe an alternative reading is justified despite its explicit inclusion in the grammar of 6.7.6, plus examples. DR 295 is an example of continuing imprecise wording that is far more gratuitous. Neil. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29129