Summary: assert(false) displays incomplete filename
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime

--- Comment #0 from Tim Smith <> 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.


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:
------- You are receiving this mail because: -------

Reply via email to