http://d.puremagic.com/issues/show_bug.cgi?id=7557
Summary: Sea of errors after template failure
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Don <[email protected]> 2012-02-21 03:14:52 PST ---
Reported by bearophile.
More of a Sea++ of errors, it reminds me of Another Language.
It's because ScopeExp::semantic() doesn't use template instances if
global.errors is true.
Test case (not reduced, relies on D2 Phobos where writefln is a template):
import std.stdio;
T[] findroot(T)(in T x)
{
writefln("xxx");
}
void main()
{
findroot(1.0L);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------