[Issue 7721] New: Loss of template context when passed as template template parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 18 05:01:36 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7721
Summary: Loss of template context when passed as template
template parameter
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: simen.kjaras at gmail.com
--- Comment #0 from Simen Kjaeraas <simen.kjaras at gmail.com> 2012-03-18 05:01:50 PDT ---
module baz;
template Foo(alias T) {
mixin T.Baz!();
}
template Bar(U) {
template Baz( ) {
U n;
}
}
void main( ) {
mixin Foo!(Bar!int);
}
Yields the error messages:
baz.d(9): Error: undefined identifier U, did you mean variable n?
baz.d(4): Error: mixin baz.main.Foo!(__T3BarTiZ).Baz!() error instantiating
baz.d(14): Error: mixin baz.main.Foo!(__T3BarTiZ) error instantiating
--
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