[Issue 5482] Crash with align(0)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 10 13:57:00 PST 2011


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



--- Comment #2 from bearophile_hugs at eml.cc 2011-02-10 13:54:34 PST ---
(In reply to comment #1)
> Cannot reproduce.

You are right, to crash is the compiled program (with DMD 2.051 on Windows).


> The second case gives a runtime access violation, but neither example causes a
> compiler segfault.

As in the first case this time the compiled program gives:
object.Error: Access Violation


> Is align(0) really valid? I don't think it makes sense.

I agree, I suggest to turn it into a compile-time error (as negative numbers
already do).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list