Bug 8058 – assert(false) displays incomplete filename

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-06T23:48:00Z
Last change time
2012-10-22T21:00:45Z
Assigned to
nobody
Creator
tim.dolores

Attachments

IDFilenameSummaryContent-TypeSize
1101assertFilenameBug.dassertFilenameBug.d: Code to demo the issuetext/plain2414

Comments

Comment #0 by tim.dolores — 2012-05-06T23:48:18Z
Created attachment 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 [email protected](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'.
Comment #1 by andrej.mitrovich — 2012-10-22T21:00:45Z
Pull for Issue 8765 will incorporate this. *** This issue has been marked as a duplicate of issue 8765 ***