Bug 17776 – highlight error in betterC assert messages

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-08-23T15:06:03Z
Last change time
2017-09-10T22:43:03Z
Keywords
betterC
Assigned to
No Owner
Creator
Basile B.

Comments

Comment #0 by b2.temp — 2017-08-23T15:06:03Z
With DMD 2.076 beta or ~master run --- #!dmd -betterC extern(C) int main(char** args, int argc) { assert(0 == 42); return 0; } --- To see: > Assertion `a == 42' failed. I suppose that the right most expression delimiter should also be a backtick.
Comment #1 by bugzilla — 2017-09-10T22:43:03Z
The C runtime library's assert failure function is called, and that function decides how to format the message. D can't do anything about it. The bug should be refiled with the C compiler vendor.