[Issue 6310] Missing "template instantiation" traceback when an error happens in the template parameter of an alias.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 14 02:00:59 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6310
--- Comment #1 from kennytm at gmail.com 2011-07-14 01:55:44 PDT ---
More sophisticated test case which may be due to a different cause.
--------------------------------------
template SL () {
enum SL = 1;
}
template RT(alias T) if (SL!() == 1) {
alias int RT;
}
template F(T) {
alias RT!({ return T.init; }) F; // line 8
}
pragma(msg, F!(void)); // line 10
--------------------------------------
x.d(8): Error: void does not have an initializer
x.d(8): Error: void does not have a default initializer
--------------------------------------
--
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