Bug 8100 – [ICE] with templated subclassing

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-05-15T11:10:00Z
Last change time
2014-06-08T02:42:33Z
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-05-15T11:10:14Z
DMD 2.060alpha crashes: class Foo(T1) { T1.Q r; } class Bar(T2) : Foo!(Bar!T2) {} Bar!bool b; void main() {}
Comment #1 by yebblies — 2013-01-16T07:18:03Z
No ice with 2.062
Comment #2 by bearophile_hugs — 2013-01-16T10:11:55Z
Now it gives: temp.d(1): Error: no property 'Q' for type 'temp.Bar!(bool).Bar' temp.d(1): Error: T1.Q is used as a type temp.d(2): Error: template instance temp.Foo!(Bar) error instantiating temp.d(3): instantiated from here: Bar!(bool) temp.d(3): Error: template instance temp.Bar!(bool) error instantiating Closed.
Comment #3 by github-bugzilla — 2014-06-08T02:42:28Z