<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - clang crashes with SIGSEGV during &quot;LLVM IR generation of compound statement ('{}')&quot;" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24178&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=mWVYq2qiY4wu641qDFYFWWzRBvp6Fi7e2mEE3DVwPLs&s=_D82ik9iOvOPNUWd8aWDHZAoQC7khKJnCSE82cvAY94&e=">24178</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crashes with SIGSEGV during "LLVM IR generation of compound statement ('{}')"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>felix.morgner@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When compiling the attached source on Arch Linux using the clang 3.6.2 release
found in the official repository running on 'armv7l-unknown-linux-gnueabihf' I
get the following stack dump:

0.    Program arguments: /usr/bin/clang -cc1 -triple
armv7-unknown-linux-gnueabihf -emit-obj -disable-free -disable-llvm-verifier
-main-file-name device.cpp -mrelocation-model static -mthread-model posix
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-fuse-init-array -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard
-target-linker-version 2.25.0 -dwarf-column-info -coverage-file
/home/gitlab-runner/builds/c5102916/0/fmorgner/tapper/build/src/CMakeFiles/device.dir/device.cpp.o
-resource-dir /usr/bin/../lib/clang/3.6.2 -D ASIO_STANDALONE -D NDEBUG -I
/home/gitlab-runner/builds/c5102916/0/fmorgner/tapper/include -internal-isystem
/usr/bin/../lib/gcc/armv7l-unknown-linux-gnueabihf/5.1.0/../../../../include/c++/5.1.0
-internal-isystem
/usr/bin/../lib/gcc/armv7l-unknown-linux-gnueabihf/5.1.0/../../../../include/c++/5.1.0/armv7l-unknown-linux-gnueabihf
-internal-isystem
/usr/bin/../lib/gcc/armv7l-unknown-linux-gnueabihf/5.1.0/../../../../include/c++/5.1.0/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.6.2/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wall -Wextra -Werror -pedantic
-std=c++14 -fdeprecated-macro -fdebug-compilation-dir
/home/gitlab-runner/builds/c5102916/0/fmorgner/tapper/build/src -ferror-limit
19 -fmessage-length 119 -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -o CMakeFiles/device.dir/device.cpp.o -x c++
/home/gitlab-runner/builds/c5102916/0/fmorgner/tapper/src/device.cpp 
1.    <eof> parser at end of file
2.   
/home/gitlab-runner/builds/c5102916/0/fmorgner/tapper/src/device.cpp:14:11:
LLVM IR generation of declaration 'tapper'
3.   
/home/gitlab-runner/builds/c5102916/0/fmorgner/tapper/src/device.cpp:17:11:
Generating code for declaration 'tapper::device::device'
4.   
/home/gitlab-runner/builds/c5102916/0/fmorgner/tapper/src/device.cpp:18:5: LLVM
IR generation of compound statement ('{}')
5.   
/home/gitlab-runner/builds/c5102916/0/fmorgner/tapper/src/device.cpp:24:7: LLVM
IR generation of compound statement ('{}')

The issue doesn't seem to occur on x86_64.

This is the 'script' used:

"/usr/bin/clang" "-cc1" "-triple" "armv7-unknown-linux-gnueabihf" "-emit-obj"
"-disable-free" "-disable-llvm-verifier" "-main-file-name" "device.cpp"
"-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim"
"-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-fuse-init-array"
"-target-cpu" "cortex-a8" "-target-abi" "aapcs-linux" "-mfloat-abi" "hard"
"-target-linker-version" "2.25.0" "-dwarf-column-info" "-D" "ASIO_STANDALONE"
"-D" "NDEBUG" "-O3" "-Wall" "-Wextra" "-Werror" "-pedantic" "-std=c++14"
"-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length" "119"
"-mstackrealign" "-fno-signed-char" "-fobjc-runtime=gcc" "-fcxx-exceptions"
"-fexceptions" "-fdiagnostics-show-option" "-fcolor-diagnostics"
"-vectorize-loops" "-vectorize-slp" "-x" "c++" "device-200786.cpp"</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>