[Issue 7557] New: Sea of errors after template failure
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Feb 21 03:15:27 PST 2012
    
    
  
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: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list