[Issue 8058] New: assert(false) displays incomplete filename

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 6 23:47:02 PDT 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 at puremagic.com
        ReportedBy: tim.dolores at gmail.com


--- Comment #0 from Tim Smith <tim.dolores at 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 at assertFilenameBug(40): Assertion failure
core.exception.AssertError at 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: -------


More information about the Digitalmars-d-bugs mailing list