Summary: [2.060 beta] 'version' rejected inside 'static if's
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from Nick Sabalausky <> 2012-07-24 
20:14:42 PDT ---
static if(true)
    version = Foo;
static if(true)
    version(Foo) {}

Worked in 2.059, fails to compile on 2.060 beta:

test.d(2): Error: version Foo defined after use

(Note: If you comment out line #3, it still fails, and that's issue #7386, but
that's *not* a regression)

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

Reply via email to