Quality of errors in DMD

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 06:20:37 PDT 2016


On Saturday, 3 September 2016 at 12:12:34 UTC, Walter Bright 
wrote:
> Except that asserts are checking for compiler bugs, not 
> diagnostics on user code.

Except that in the real world, it is an irrelevant distinction 
because you have stuff to do and can't afford to wait on the 
compiler team to actually fix the bug.

If nothing else, you'd like to know where it is so you can hack 
around the bug by changing your implementation. I'm sure every 
long time D programmer (and likely C++ if you've been in a long 
time, I have hit many bugs in g++ too) has hit a compiler bug and 
"fixed" it by using some different approach in their user code.


I understand if you want to say producing better error messages 
in the compiler is a pain and you have other priorities, but 
surely you accept that they are valuable for this reason if 
nothing else.


More information about the Digitalmars-d mailing list