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

--- Comment #0 from William Moore <> 2010-08-20 14:10:04 PDT 
Compilation fails with:
breaker.d(11): Error: identifier 'r' is not defined
breaker.d(7): Error: template instance breaker.ElemType!() error instantiating

given the following for breaker.d:

module breaker;
import breaker;

void main(){}

struct Test {
  static if (is(ElemType!())) {}

template ElemType() {
  alias r ElemType;

Note that when you remove "import breaker;", the code compiles without error. 
This was distilled from a 4 module circular import.

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

Reply via email to