http://d.puremagic.com/issues/show_bug.cgi?id=5988
Andrej Mitrovic <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rejects-valid |accepts-invalid CC| |[email protected] OS/Version|Mac OS X |All --- Comment #3 from Andrej Mitrovic <[email protected]> 2013-02-09 06:06:21 PST --- (In reply to comment #2) > This is because that class template is actually > > template C(T) { > class C { > <declarations> > } > } > > so the C inside is referring to the class C, not the template C. This code > works: > > class C(T) { > Templ!(.C) foo; > } > > I don't know why uncomment the global instantiation makes the problem goes > away. Yeah, this is an accepts-invalid for this test-case: template Templ(alias T) { alias T!int Templ; } class C(T) { Templ!(C) foo; // should be NG, must use Templ!(.C) } Templ!C foo; void main() { C!int a; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
