[Issue 9880] New: Redundant template instance displaying in error	message
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Apr  4 21:57:40 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=9880
           Summary: Redundant template instance displaying in error
                    message
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-04-04 21:57:37 PDT ---
This invalid code:
void foo(T)(int) if (is(T == int)) {}
void main() { alias f = foo!string; }
Outputs:
test.d(2): Error: template instance foo!(string) foo!(string) does not match
template declaration foo(T)(int) if (is(T == int))
"foo!(string)" is displayed twice - it's redundant. Should be:
test.d(2): Error: template instance foo!(string) does not match template
declaration foo(T)(int) if (is(T == int))
-- 
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