When you use assert you get different output depending on whether a message was given or not. The reason is that dmd calls _d_assertm if no message was given and _d_assert_msg if a message was given. This is all fine except that when calling _d_assertm instead of the filename the module name is used. In glue.c around line 478 when calling _d_assertm only the line number is computed. In my opinion _d_assertm should be changed to accept a string for the filename instead of a ModuleInfo*. I would like to make the needed changes myself but I need assistance because I'm quite lost in the backend/glue code.
``` void main() { assert(0); } ``` Result: core.exception.AssertError@test.d(3): Assertion failure ``` void main() { assert(0, "le message"); } ``` Result: core.exception.AssertError@test.d(3): le message Seems to be fixed.