Summary: static if with dangling else clause
           Product: D
           Version: future
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-06-06 06:34:41 PDT ---
This D2 program compiles and runs with v2.046, but the syntax is wrong:

template Foo(bool b) {
    static if (b)
        enum bool Foo = 1;
static assert(Foo!(true) == 1);
void main() {}

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

Reply via email to