Thread overview
[Issue 8058] New: assert(false) displays incomplete filename
May 07, 2012
Tim Smith
May 07, 2012
Tim Smith
Oct 23, 2012
Andrej Mitrovic
May 07, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8058

           Summary: assert(false) displays incomplete filename
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody@puremagic.com
        ReportedBy: tim.dolores@gmail.com


--- Comment #0 from Tim Smith <tim.dolores@gmail.com> 2012-05-06 23:48:18 PDT ---
Created an attachment (id=1101)
assertFilenameBug.d: Code to demo the issue

If assert() is called without a message, then the filename is missing
the .d extension. If called with a message string, assert() prints the
correct filename.

Example:

core.exception.AssertError@assertFilenameBug(40): Assertion failure
core.exception.AssertError@assertFilenameBug.d(39): Test with message


Compile the attached with DMD v2.059 (installed on OS X with 'brew install dmd'). Run as './assertFilenameBug' or './assertFilenameBug OkayIfHasMessage'.

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


Tim Smith <tim.dolores@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1101|application/octet-stream    |text/plain
          mime type|                            |


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


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-22 21:00:45 PDT ---
Pull for Issue 8765 will incorporate this.

*** This issue has been marked as a duplicate of issue 8765 ***

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