[dmd-internals] Error messages with no line number
Trass3r
mrmocool at gmx.de
Thu Jun 3 15:53:14 PDT 2010
Yeah the error handling is a mess.
There are several different versions of error() in different places
(mars.c, root.c, expression.c, ...). Some add loc by themselves, some
don't (like the global one you mentioned).
I think that's why it's so error prone.
In todt.c:141 an error function is called but neither Visual Studio's
IntelliSense nor VisualAssist's usually very smart one can detect which
one is called.
Additionally in the following issue Expression::error() is called in
todt.c:683 which normally does add loc to the message, but for some reason
loc is null:
http://d.puremagic.com/issues/show_bug.cgi?id=4241
Warnings are another problem. For example see this bug where a warning is
put out like an error:
http://d.puremagic.com/issues/show_bug.cgi?id=4216
More information about the dmd-internals
mailing list