<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/67924>67924</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
frontend bug while: Generating code for declaration 'llvm::SmallVectorTemplateCommon<long>::operator[]'
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ImanHosseini
</td>
</tr>
</table>
<pre>
While building [https://github.com/openxla/iree](https://github.com/openxla/iree) :
```
[60/1373] Building CXX object compiler/plugins/input/Torch/torch-mlir/CMakeFiles/torch-mlir_TorchDialectPasses.objects.dir/__/__/__/__/__/third_party/torch-mlir/lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp.o
FAILED: compiler/plugins/input/Torch/torch-mlir/CMakeFiles/torch-mlir_TorchDialectPasses.objects.dir/__/__/__/__/__/third_party/torch-mlir/lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp.o
/usr/bin/clang++ -I/home/iman/dai/iree/compiler/plugins/input/Torch -I/home/iman/dai/iree-build/compiler/plugins/input/Torch -I/home/iman/dai/iree/third_party/llvm-project/llvm/include -I/home/iman/dai/iree-build/llvm-project/include -I/home/iman/dai/iree/third_party/llvm-project/mlir/include -I/home/iman/dai/iree-build/llvm-project/tools/mlir/include -I/home/iman/dai/iree/third_party/llvm-project/lld/include -I/home/iman/dai/iree-build/llvm-project/tools/lld/include -isystem /home/iman/dai/iree -isystem /home/iman/dai/iree-build -isystem /home/iman/dai/iree/third_party/torch-mlir/include -O2 -g -gsplit-dwarf -ggnu-pubnames -std=gnu++17 -fPIC -fvisibility=hidden -fno-rtti -fno-exceptions -Werror -Wall -Wno-ambiguous-member-template -Wno-char-subscripts -Wno-extern-c-compat -Wno-gnu-alignof-expression -Wno-gnu-variable-sized-type-not-at-end -Wno-ignored-optimization-argument -Wno-invalid-offsetof -Wno-invalid-source-encoding -Wno-mismatched-tags -Wno-pointer-sign -Wno-reserved-user-defined-literal -Wno-return-type-c-linkage -Wno-self-assign-overloaded -Wno-sign-compare -Wno-signed-unsigned-wchar -Wno-strict-overflow -Wno-trigraphs -Wno-unknown-pragmas -Wno-unknown-warning-option -Wno-unused-command-line-argument -Wno-unused-const-variable -Wno-unused-function -Wno-unused-local-typedef -Wno-unused-private-field -Wno-user-defined-warnings -Wc++20-extensions -Wctad-maybe-unsupported -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wfor-loop-analysis -Wformat-security -Wgnu-redeclared-enum -Wimplicit-fallthrough -Winfinite-recursion -Wliteral-conversion -Wnon-virtual-dtor -Woverloaded-virtual -Wpointer-arith -Wself-assign -Wstring-conversion -Wtautological-overlap-compare -Wthread-safety -Wthread-safety-beta -Wunused-comparison -Wvla -fno-omit-frame-pointer -fmacro-prefix-map=/home/iman/dai/iree=iree -MD -MT compiler/plugins/input/Torch/torch-mlir/CMakeFiles/torch-mlir_TorchDialectPasses.objects.dir/__/__/__/__/__/third_party/torch-mlir/lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp.o -MF compiler/plugins/input/Torch/torch-mlir/CMakeFiles/torch-mlir_TorchDialectPasses.objects.dir/__/__/__/__/__/third_party/torch-mlir/lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp.o.d -o compiler/plugins/input/Torch/torch-mlir/CMakeFiles/torch-mlir_TorchDialectPasses.objects.dir/__/__/__/__/__/third_party/torch-mlir/lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp.o -c /home/iman/dai/iree/third_party/torch-mlir/lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp
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: /usr/bin/clang++ -I/home/iman/dai/iree/compiler/plugins/input/Torch -I/home/iman/dai/iree-build/compiler/plugins/input/Torch -I/home/iman/dai/iree/third_party/llvm-project/llvm/include -I/home/iman/dai/iree-build/llvm-project/include -I/home/iman/dai/iree/third_party/llvm-project/mlir/include -I/home/iman/dai/iree-build/llvm-project/tools/mlir/include -I/home/iman/dai/iree/third_party/llvm-project/lld/include -I/home/iman/dai/iree-build/llvm-project/tools/lld/include -isystem /home/iman/dai/iree -isystem /home/iman/dai/iree-build -isystem /home/iman/dai/iree/third_party/torch-mlir/include -O2 -g -gsplit-dwarf -ggnu-pubnames -std=gnu++17 -fPIC -fvisibility=hidden -fno-rtti -fno-exceptions -Werror -Wall -Wno-ambiguous-member-template -Wno-char-subscripts -Wno-extern-c-compat -Wno-gnu-alignof-expression -Wno-gnu-variable-sized-type-not-at-end -Wno-ignored-optimization-argument -Wno-invalid-offsetof -Wno-invalid-source-encoding -Wno-mismatched-tags -Wno-pointer-sign -Wno-reserved-user-defined-literal -Wno-return-type-c-linkage -Wno-self-assign-overloaded -Wno-sign-compare -Wno-signed-unsigned-wchar -Wno-strict-overflow -Wno-trigraphs -Wno-unknown-pragmas -Wno-unknown-warning-option -Wno-unused-command-line-argument -Wno-unused-const-variable -Wno-unused-function -Wno-unused-local-typedef -Wno-unused-private-field -Wno-user-defined-warnings -Wc++20-extensions -Wctad-maybe-unsupported -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wfor-loop-analysis -Wformat-security -Wgnu-redeclared-enum -Wimplicit-fallthrough -Winfinite-recursion -Wliteral-conversion -Wnon-virtual-dtor -Woverloaded-virtual -Wpointer-arith -Wself-assign -Wstring-conversion -Wtautological-overlap-compare -Wthread-safety -Wthread-safety-beta -Wunused-comparison -Wvla -fno-omit-frame-pointer -fmacro-prefix-map=/home/iman/dai/iree=iree -MD -MT compiler/plugins/input/Torch/torch-mlir/CMakeFiles/torch-mlir_TorchDialectPasses.objects.dir/__/__/__/__/__/third_party/torch-mlir/lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp.o -MF compiler/plugins/input/Torch/torch-mlir/CMakeFiles/torch-mlir_TorchDialectPasses.objects.dir/__/__/__/__/__/third_party/torch-mlir/lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp.o.d -o compiler/plugins/input/Torch/torch-mlir/CMakeFiles/torch-mlir_TorchDialectPasses.objects.dir/__/__/__/__/__/third_party/torch-mlir/lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp.o -c /home/iman/dai/iree/third_party/torch-mlir/lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. /home/iman/dai/iree/third_party/llvm-project/llvm/include/llvm/ADT/SmallVector.h:293:13: Generating code for declaration 'llvm::SmallVectorTemplateCommon<long>::operator[]'
#0 0x00007f35257032a1 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe4b2a1)
#1 0x00007f3525700fee llvm::sys::RunSignalHandlers() (/usr/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe48fee)
#2 0x00007f3525702660 llvm::sys::CleanupOnSignal(unsigned long) (/usr/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe4a660)
#3 0x00007f352562f9ff (/usr/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xd779ff)
#4 0x00007f352e974420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Ubuntu clang version 14.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/DecomposeComplexOps-988036.cpp
clang: note: diagnostic msg: /tmp/DecomposeComplexOps-988036.sh
clang: note: diagnostic msg:
********************
```
Those 'attach' files:
[a.sh.txt](https://github.com/llvm/llvm-project/files/12777587/a.sh.txt)
[a.cpp.txt](https://github.com/llvm/llvm-project/files/12777582/a.cpp.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.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