Summary: Better error message with numbers with leading zeros
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-05-18 17:46:39 PDT ---
Given that now there are no octal number literals in D2, I suggest to give a
better error message in this case (09 is not an octal number anyway):

void main() {
    auto array = [09];

DMD 2.053 prints:
test.d(2): comma expected separating array initializers, not 9
test.d(2): semicolon expected following auto declaration, not ']'
test.d(2): found ']' instead of statement

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

Reply via email to