[Issue 17168] New: Shift left operator causes segfault when compiling with -O -inline flags
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Feb 9 10:06:42 PST 2017
https://issues.dlang.org/show_bug.cgi?id=17168
Issue ID: 17168
Summary: Shift left operator causes segfault when compiling
with -O -inline flags
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: meapineapple at gmail.com
Where test.d contains:
void fn(uint x){uint a = 0 << x;}
This works fine:
> dmd test.d -main
This does not:
> dmd test.d -main -O -inline
Segmentation fault: 11
This bug seems to only occur when both the -O and -inline compilation flags are
present.
--
More information about the Digitalmars-d-bugs
mailing list