[llvm-bugs] [Bug 37280] New: layer2/RepCylBond.cpp exposes compiler ICE for -O1 or higher without -fno-strict-aliasing

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Apr 28 04:16:16 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37280

            Bug ID: 37280
           Summary: layer2/RepCylBond.cpp exposes compiler ICE for -O1 or
                    higher without -fno-strict-aliasing
           Product: new-bugs
           Version: 6.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: howarth.mailing.lists at gmail.com
                CC: llvm-bugs at lists.llvm.org

The recent code for layer2/RepCylBond.cpp has exposed a clang compiler ICE on
Darwin.

7 warnings generated.
fatal error: error in backend: Unsupported expression in static initializer:
fsub (float 1.000000e+00, float undef)
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 6.0.0 (tags/RELEASE_600/final)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-6.0/bin

This issue occurs reportedly is present with Xoode's clang circa OS X 10.9 and
is confirmed in llvm.org's clang since at least clang 4.0 up to clang 6.0. The
issue doesn't occur for the -O0 or no optimization flags but does occur for -O1
or higher. The compiler ICE is suppressed however if -fno-strict-aliasing is
passed to the compiler.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180428/4a790526/attachment-0001.html>


More information about the llvm-bugs mailing list