Summary: Non-compilable template instantiation in is(typeof())
                    fails compilation
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Max Samukha <> 2009-10-18 11:25:00 
PDT ---
template bar()
    void bar()
        a b; // invalid code

template foo()
    enum foo = is(typeof(bar!()));

enum c = foo!();

test.d(19): Error: identifier 'a' is not defined
test.d(19): Error: a is used as a type
test.d(19): Error: variable!().bar.b voids have no value

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

Reply via email to