[llvm-bugs] [Bug 35321] New: Compiler crashes while compiling test coroutines program

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 15 13:14:34 PST 2017


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

            Bug ID: 35321
           Summary: Compiler crashes while compiling test coroutines
                    program
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: aizatsky at chromium.org
                CC: llvm-bugs at lists.llvm.org

The program: https://godbolt.org/g/E9sfSZ
(it is probably incorrect) crashes clang-5.0:

Stack dump:
0.      Program arguments: /opt/compiler-explorer/clang-5.0.0/bin/clang-5.0
-cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name example.cpp -mrelocation-model static
-mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -coverage-notes-file
/tmp/compiler-explorer-compiler1171015-59-1xmlewh.8xwmj/output.gcno
-resource-dir /opt/compiler-explorer/clang-5.0.0/lib/clang/5.0.0 -c-isystem
/usr/include/x86_64-linux-gnu -cxx-isystem /usr/include/x86_64-linux-gnu
-internal-isystem /opt/compiler-explorer/clang-5.0.0/bin/../include/c++/v1
-internal-isystem /usr/local/include -internal-isystem
/opt/compiler-explorer/clang-5.0.0/lib/clang/5.0.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-std=gnu++14 -fdeprecated-macro -fdebug-compilation-dir /compiler-explorer
-ferror-limit 19 -fmessage-length 0 -fcoroutines-ts -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -mllvm
--x86-asm-syntax=intel -o
/tmp/compiler-explorer-compiler1171015-59-1xmlewh.8xwmj/output.s -x c++
<source> 
1.      <source>:79:1: current parser token 'int'
2.      <source>:71:16: LLVM IR generation of declaration 'range'
3.      <source>:71:16: Generating code for declaration 'range'
4.      <source>:71:40: LLVM IR generation of compound statement ('{}')
clang-5.0: error: unable to execute command: Segmentation fault (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.0 (tags/RELEASE_500/final 312636)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/compiler-explorer/clang-5.0.0/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg: 
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/example-d7e519.cpp
clang-5.0: note: diagnostic msg: /tmp/example-d7e519.sh
clang-5.0: note: diagnostic msg: 
********************
Compiler exited with result code 254

-- 
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/20171115/f1a704d1/attachment-0001.html>


More information about the llvm-bugs mailing list