www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5861] New: Wrong filename in error message when an invalid delegate in a template parameter is typeof()-ed

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5861

           Summary: Wrong filename in error message when an invalid
                    delegate in a template parameter is typeof()-ed
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: kennytm gmail.com



Test case:

-----------------------------------------
// x.d
#line 2000 "x.d"
void g(alias f)() {
    typeof(f) z;
}
-----------------------------------------
// y.d
import x;
void main() {
    g!( (UndefinedIdentifier){} )();
}
-----------------------------------------

The error message is:

y.d(2002): Error: variable y.main.g!(__dgliteral1).g.z voids have no value
y.d(3): Error: template instance y.main.g!(__dgliteral1) error instantiating

where the first error should point to x.d(2002) or y.d(3). 

Probably related to issue 5073.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 19 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5861






https://github.com/D-Programming-Language/dmd/pull/103

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 10 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5861


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



14:21:10 PDT ---
https://github.com/D-Programming-Language/dmd/commit/750f96853c8885ca7c95e97485cacb94205b7190

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 11 2011