[Issue 5015] New: Cyclic import breaks is() in a static if
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 7 17:15:36 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5015
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
AssignedTo: nobody at puremagic.com
ReportedBy: nyphbl8d at gmail.com
--- Comment #0 from William Moore <nyphbl8d at gmail.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list