Bug 83 – Assertion failure: 3567 'expression.c', crossaliasing problem
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-04-04T01:53:00Z
Last change time
2014-02-15T02:09:20Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
nail-mail
Comments
Comment #0 by nail-mail — 2006-04-04T01:53:28Z
template T1()
{
alias T2!().myproperty myproperty;
real myproperty()
{
return 0;
}
}
template T2()
{
alias T1!().myproperty myproperty;
void myproperty(real x)
{
}
}
class C(alias M1, alias M2)
{
mixin M1!();
mixin M2!();
}
void main()
{
auto c = new C!(T1,T2);
c.myproperty = 0;
}
Compilation gives some errors and:
Assertion failure: 'type' on line 3567 in file 'expression.c'
abnormal program termination