<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Compiler crashes while compiling test coroutines program"
href="https://bugs.llvm.org/show_bug.cgi?id=35321">35321</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Compiler crashes while compiling test coroutines program
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>aizatsky@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The program: <a href="https://godbolt.org/g/E9sfSZ">https://godbolt.org/g/E9sfSZ</a>
(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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>