Summary: Cyclic import breaks is() in a static if
           Product: D
           Version: D1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from William Moore <> 2010-10-07 17:15:11 PDT 
This issue is nearly identical to Issue 4692 with a minor amount of added
depth.  The test case below breaks 1.064 (but not 2.049):

module breaker;
import breaker;

void main() {}

static if (is(ElemType!(int))){}

template ElemType(T) {
  alias _ElemType!(T).type ElemType;

template _ElemType(T) {
    alias r type;

As before, this was distilled from the same multi-module cyclic import.  Also
as before, commenting out the cyclic import causes the code to compile as
expected.  This code works properly in 1.060.

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

Reply via email to