Summary: Wrong 'static' position error message
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-08-17 07:10:48 PDT ---
Compiling this program with dmd 2.048:

void main() {
    void foo() static {}

I receive the errors:

test.d(2): semicolon expected following function declaration
test.d(2): basic type expected, not {
test.d(2): no identifier for declarator int
test.d(2): semicolon expected, not '{'

Maybe storage classes can't be written on the right side, but I'd like a better
error message here.

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

Reply via email to