www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17168] New: Shift left operator causes segfault when


          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 puremagic.com
          Reporter: meapineapple 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

Feb 09 2017