[Issue 432] invalid expression causes compiler seg-fault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 14 07:36:12 PDT 2006


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


fvbommel at wxs.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
         OS/Version|Linux                       |All




------- Comment #1 from fvbommel at wxs.nl  2006-10-14 09:36 -------
> bool a, b;
> true && (a = b); // ok in DMD 168 and 169

irrellevant.

> // DMD 168 and 169 give this error: true && (a) is not an lvalue
> true && a = b; // only DMD 169 seg-faults here

This is equivalent to '(true && a) = b', not 'true && (a = b)' as you seem to
imply by including the first bit of code. This means the error message is
completely justified.

The seg-fault is a bug, of course. (A null pointer dereference, judging by the
error dialog)

Also occurs on Windows, so set OS to 'All'.


-- 




More information about the Digitalmars-d-bugs mailing list