www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10657] New: wrong error message with unexisting symbol

http://d.puremagic.com/issues/show_bug.cgi?id=10657

           Summary: wrong error message with unexisting symbol
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thelastmammoth gmail.com


--- Comment #0 from thelastmammoth gmail.com 2013-07-16 22:33:36 PDT ---
version(v1)
void fun(T)(T a)if(is(T==unexisting!T)){}
//OK: Error: template instance unexisting!(T) template 'unexisting' is not
defined

version(v2)
void fun(T)(T a)if(is(unexisting!T==unexisting!T)){}
//NG: Error: template bug_2013_07_16_22_23_32.fun does not match any function
template declaration. Candidates are:

unittest{
  fun(0);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 16 2013