[Issue 1782] New: Instantiating nested template with wrong instantiated parent template causes ICE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 11 16:56:28 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1782
Summary: Instantiating nested template with wrong instantiated
parent template causes ICE
Product: D
Version: 1.025
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: ice-on-invalid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: ary at esperanto.org.ar
When compiling the following code:
---
template Foo(alias T) {
template Temp() {
const char[] Temp = "int x;";
}
}
mixin(Foo!(1).Temp!());
---
DMD says:
one.d(7): template instance Foo!(1) does not match any template declaration
and then comes the ICE.
--
More information about the Digitalmars-d-bugs
mailing list