Bug 4792 – Assertion in shift right operations.

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2010-09-03T02:19:00Z
Last change time
2010-09-03T11:38:15Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
ibuclaw

Comments

Comment #0 by ibuclaw — 2010-09-03T02:19:14Z
Both examples: int main() { return cast(int)(.0>>0); } int main() { return cast(int)(.0>>>0); } result in an ICE in the compiler. Whereas int main() { return cast(int)(.0<<0); } is handled perfectly fine. As this is not supposed to be compilable, I assume that the error type isn't being handled as it should be. Regards
Comment #1 by clugdbug — 2010-09-03T11:38:15Z
*** This issue has been marked as a duplicate of issue 4751 ***