<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/62160>62160</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Segmentation fault with -O2 & -O3
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          MCausc78
      </td>
    </tr>
</table>

<pre>
    Hey LLVM project. I dont know why i getting Segmentation fault. I think that error in backend for ARM. The compiler asked me to send issue:
```
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /data/data/com.termux/files/usr/bin/clang-15 -cc1 -triple armv7-unknown-linux-android24 -emit-obj --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name gena.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-cpu generic -target-feature +soft-float-abi -target-feature +vfp2 -target-feature +vfp2sp -target-feature +vfp3 -target-feature +vfp3d16 -target-feature +vfp3d16sp -target-feature +vfp3sp -target-feature -fp16 -target-feature -vfp4 -target-feature -vfp4d16 -target-feature -vfp4d16sp -target-feature -vfp4sp -target-feature -fp-armv8 -target-feature -fp-armv8d16 -target-feature -fp-armv8d16sp -target-feature -fp-armv8sp -target-feature -fullfp16 -target-feature +fp64 -target-feature +d32 -target-feature +neon -target-feature -sha2 -target-feature -aes -target-feature -fp16fml -target-abi aapcs-linux -mfloat-abi soft -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -fcoverage-compilation-dir=/data/data/com.termux/files/home/box/cpp -resource-dir /data/data/com.termux/files/usr/lib/clang/15.0.6 -isysroot /data/data/com.termux/files -internal-isystem /data/data/com.termux/files/usr/include/c++/v1 -internal-isystem /data/data/com.termux/files/usr/lib/clang/15.0.6/include -internal-isystem /data/data/com.termux/files/usr/local/include -internal-externc-isystem /data/data/com.termux/files/usr/include/arm-linux-androideabi -internal-externc-isystem /data/data/com.termux/files/include -internal-externc-isystem /data/data/com.termux/files/usr/include -O3 -std=gnu++20 -fdeprecated-macro -fdebug-compilation-dir=/data/data/com.termux/files/home/box/cpp -ferror-limit 19 -fno-signed-char -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fcolor-diagnostics -vectorize-loops -vectorize-slp -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /data/data/com.termux/files/usr/tmp/gena-7ad854.o -x c++ gena.cpp
1. <eof> parser at end of file
2.      Optimizer
clang-15: error: unable to execute command: Segmentation fault
clang-15: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 15.0.6
Target: armv7a-unknown-linux-android24
Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin
clang-15: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-15: note: diagnostic msg: /data/data/com.termux/files/usr/tmp/gena-8d2636.cpp
clang-15: note: diagnostic msg: /data/data/com.termux/files/usr/tmp/gena-8d2636.sh
clang-15: note: diagnostic msg:

********************
```
Here a  files that compiler asked to attach:
[gena-8d2636.cpp.txt](https://github.com/llvm/llvm-project/files/11240735/gena-8d2636.cpp.txt)
[gena-8d2636.sh.txt](https://github.com/llvm/llvm-project/files/11240736/gena-8d2636.sh.txt)
A clean source code, that i give to compiler: [gena.cpp.txt](https://github.com/llvm/llvm-project/files/11240737/gena.cpp.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8WF9P47oS_zTpy8hR4_QPPPQBKF2Q2Mtq4Z7ziKb2JPHBsSPbKd399Fd2SoGlrJZl76kitZkZz4znn38ueq9qQ7TIpqfZdDnCPjTWLT6fYe_F_Gi0tvLb4oK-wdXVX5-hc_YfEiGHS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