Date
2022-11-20.07:54:16
Message id
6012

Content

Subclause 9.1 [dcl.pre] paragraph 1 defines simple-declaration as:

simple-declaration :
    decl-specifier-seq init-declarator-listopt ;
    attribute-specifier-seq decl-specifier-seq init-declarator-list ;
    ...

However, 9.1 [dcl.pre] paragraph 2 then refers to a simple-declaration using a different producction:

A simple-declaration or nodeclspec-function-declaration of the form
    attribute-specifier-seqopt decl-specifier-seqopt init-declarator-listopt ;
is divided into three parts...

It appears that the latter redefines the grammar non-terminal simple-declaration in an inconsistent way.