Summary: Declarator rule is broken
           Product: D
           Version: 2.025
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2

This is a regression from
The definition of Declarator prevents parsing the following declaration:

int x = 3;

Declaration -> Decl
Decl -> BasicType Declarators
BasicType -> "int"
Declarators -> DeclaratorInitializer
DeclaratorInitializer -> Declarator "=" Initializer

Declarator can't parse the Identifier 'x', though.  It must start with a
BasicType2, which cannot begin with Identifier as specified.

See the following thread as well:


Reply via email to