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: nob...@puremagic.com
        ReportedBy: tim.dolo...@gmail.com


--- Comment #0 from Tim Smith <tim.dolo...@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: -------

Reply via email to