http://d.puremagic.com/issues/show_bug.cgi?id=3538
Summary: Default value of alias template parameter is instantiated only once. Product: D Version: 2.036 Platform: x86 OS/Version: Linux Status: NEW Severity: critical Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: e.insafutdi...@gmail.com --- Comment #0 from Eldar Insafutdinov <e.insafutdi...@gmail.com> 2009-11-21 12:28:04 PST --- template Boo(T) {} struct Foo(T, alias V = Boo!T) { pragma(msg, V.stringof); } alias Foo!double B; alias Foo!int A; outputs Boo!(double) Boo!(double) while it should Boo!(double) Boo!(int) Although it's a blocker for a design that I intend to use, I don't mark it as such with hope that it'll get fixed, as it looks trivial to me. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------