------- Comment #1 from j at uriah dot heep dot sax dot de  2007-04-12 16:32 
-------
I disagree the "invalid syntax".  According to the formal attribute syntax
description:
``Any list of specifiers and qualifiers at the start of a declaration may
contain attribute specifiers, whether or not such a list may in that
context contain storage class specifiers.''

it is a perfectly valid use.  Syntactically, the ``int main(void)'' part of
that function definition is a declarator, so it essentially combines a
declaration with a definition.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31331

Reply via email to