Bug 2519 – Segfault when >> used in an invalid slice

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-12-17T02:15:00Z
Last change time
2014-02-24T15:32:40Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2008-12-17T02:15:05Z
A one-liner. Applies to << and >>> as well. Happens in both D1.038 and D2.022; not a recent regression (happens in D1.030 as well). Happens every time there's an invalid slice with >> in it. --- int x = x[0..x>>1]; --- //bug.d(1): Error: int cannot be sliced with [] //SEGFAULT
Comment #1 by clugdbug — 2009-02-03T08:01:20Z
Fixed D1.039