www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17917] New: Wrong code gen with "-O -cov"


          Issue ID: 17917
           Summary: Wrong code gen with "-O -cov"
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: mihails.strasuns.contractor sociomantic.com

This function
starts to fail test when compiled with "-O -cov" (both flags matter).
Investigation shows that it doesn't do early return after first conditon of
`&&` expression fails, as demanded by spec.

However, the very same function and test don't fail when compiled alone,
outside of whole ocean codebase. I don't have smaller reproducible test case

Oct 19 2017