www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2397] New: wrong file name in error after #line

reply d-bugmail puremagic.com writes:
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


-- 
Oct 06 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2397


smjg iname.com changed:

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





Is this really any different from issue 2180?


-- 
Nov 24 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2397







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


-- 
Nov 24 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2397




*** 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: -------
May 06 2010
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Sep 27 2012