Summary: Odd error for using 08 literal
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: DMD

--- Comment #0 from Jonathan M Davis <> 2012-07-03 17:38:08 
PDT ---
void main()
    auto n = 08;

results in this error:

q.d(3): Error: semicolon expected following auto declaration, not '8'

The code is indeed invalid, but the error seems a bit odd, since it doesn't
indicate anything about the leading 0. It should probably say something about
08 being an illegal numeric literal.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to