[Issue 1533] Crash unknown symbol with std.signals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 26 10:20:32 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1533


matti.niemenmaa+dbugzilla at iki.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |major




------- Comment #3 from matti.niemenmaa+dbugzilla at iki.fi  2007-09-26 12:20 -------
(In reply to comment #2)
> The error message printed just before the compiler crashes is amusing:
> 
> sigbug.d(7): Error: undefined identifier foo
> sigbug.d(7): Error: function expected before (), not foo of type int
> sigbug.d(236): function sigbug.ChildProcesses.foobar.Signal!(int)._dtor
> destruct
> ors only are for class definitions
> 
> line 236.. of a 13 line program.

The mixin pulls in a bunch of stuff. DMD isn't smart enough to point to the
actual line where the code is, pointing only to the mixin-expanded code (which
you can't even ever see since there's nothing like C compilers' -E).

> But should an ice-on-invalid really be marked Severity:critical?

I don't think so. Changing to major.


-- 



More information about the Digitalmars-d-bugs mailing list