Bug 8768 – ICE(access.c) Implicit super call to templated constructor
Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-06T08:22:00Z
Last change time
2013-01-08T23:23:59Z
Keywords
ice
Assigned to
nobody
Creator
admin
Comments
Comment #0 by admin — 2012-10-06T08:22:15Z
class Bar {
this(T)(string s, T x) {}
}
class Main : Bar {
this(string s) {}
//this()(string s) {} // this version compiles
}
Note: this also happens with GDC and LDC
Comment #1 by yebblies — 2013-01-06T18:59:50Z
It looks like the call to super can't be resolved, resulting in 'd' being null inside accessCheck.
class A {
this(T)() {}
}
class B : A {
this() {}
}
Comment #2 by k.hara.pg — 2013-01-08T23:23:59Z
The root cause is same as 9273.
(Bug 9273 is a regression, so mark as a duplication.)
*** This issue has been marked as a duplicate of issue 9273 ***