Thread overview
[Issue 2397] New: wrong file name in error after #line
Oct 06, 2008
d-bugmail
Nov 24, 2008
d-bugmail
Nov 24, 2008
d-bugmail
May 06, 2010
Don
Sep 27, 2012
Don
October 06, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2397

           Summary: wrong file name in error after #line
           Product: D
           Version: 1.029
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: shro8822@vandals.uidaho.edu


interface I {void i();}

pragma(msg,__FILE__);
#line __LINE__ "y.d"
pragma(msg,__FILE__);

class C : I {}


output:
bug2.d
y.d
bug2.d(6): class bug2.C interface function I.i isn't implemented


-- 

November 24, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2397


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
           Keywords|                            |diagnostic




------- Comment #1 from smjg@iname.com  2008-11-24 10:25 -------
Is this really any different from issue 2180?


-- 

November 24, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2397





------- Comment #2 from shro8822@vandals.uidaho.edu  2008-11-24 12:25 -------

yes, 2180 is a different error message. As only some error messages have this issue, it would seem that the issue is not necessarily common to all instances. (but the fix might be the same in each place)

Also related to:
issue 2180
issue 2360


-- 

May 06, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2397



--- Comment #3 from Don <clugdbug@yahoo.com.au> 2010-05-06 12:49:06 PDT ---
*** Issue 2360 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 27, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=2397


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug@yahoo.com.au
         Resolution|                            |FIXED


--- Comment #4 from Don <clugdbug@yahoo.com.au> 2012-09-27 01:48:20 PDT ---
Now prints on D1:
bug2.d
y.d
y.d(6): Error: class bug2.C interface function I.i isn't implemented

which is correct (the file has changed, but the module has not) On D2 it doesn't compile the code, but that is bug 7524.

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