[Issue 3538] New: Default value of alias template parameter is instantiated only once.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 21 12:28:05 PST 2009
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: nobody at puremagic.com
ReportedBy: e.insafutdinov at gmail.com
--- Comment #0 from Eldar Insafutdinov <e.insafutdinov at 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: -------
More information about the Digitalmars-d-bugs
mailing list