-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Closed
Copy link
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"constexprAnything related to constant evaluationAnything related to constant evaluationcrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]
Description
Failure caused by
cc9ad9a
[Clang] Add constexpr support for AVX512 permutex2 intrinsics (#165085)
reproducer main.cpp
#include <xmmintrin.h>
compile offload
$ clang++ -c -v -fopenmp --offload-arch=sm_86 main.cpp
clang version 22.0.0git (https://github.com/llvm/llvm-project.git 64ad5d976dbd9bb140d81440c7d9cb093278dd31)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /scratch3/packages/llvm/main-20251109/bin
Build config: +assertions
Configuration file: /scratch3/packages/llvm/main-20251109/bin/x86_64-unknown-linux-gnu.cfg
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/11
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
Found CUDA installation: /nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/cuda-12.3.2-cbovxskbgf5vjjxo4xrovedujpfhcc5o, version 12.3
"/scratch3/packages/llvm/main-20251109/bin/clang-22" -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -disable-free -clear-ast-before-backend -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/scratch3/opt/qmcpack/build_A1200_llvmNightly_cuda12.3_offload_cuda_real/src/Message -v -fcoverage-compilation-dir=/scratch3/opt/qmcpack/build_A1200_llvmNightly_cuda12.3_offload_cuda_real/src/Message -resource-dir /scratch3/packages/llvm/main-20251109/lib/clang/22 -I/nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/intel-mkl-2020.4.304-s7l3k4j5son3vwid2blpmktk7ckuulry/compilers_and_libraries_2020.4.304/linux/mkl/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include/llvm_libc_wrappers -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/cuda-12.3.2-cbovxskbgf5vjjxo4xrovedujpfhcc5o/include -fdeprecated-macro -ferror-limit 19 -fmessage-length=135 -fopenmp -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -fcolor-diagnostics -disable-llvm-passes --offload-targets=nvptx64-nvidia-cuda -faddrsig -fdwarf2-cfi-asm -o /tmp/main-8fffff.bc -x c++ main.cpp
clang -cc1 version 22.0.0git based upon LLVM 22.0.0git default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/include"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/include"
ignoring duplicate directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11"
ignoring duplicate directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11"
ignoring duplicate directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward"
ignoring duplicate directory "/scratch3/packages/llvm/main-20251109/lib/clang/22/include"
ignoring duplicate directory "/usr/local/include"
ignoring duplicate directory "/usr/include/x86_64-linux-gnu"
ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/intel-mkl-2020.4.304-s7l3k4j5son3vwid2blpmktk7ckuulry/compilers_and_libraries_2020.4.304/linux/mkl/include
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward
/scratch3/packages/llvm/main-20251109/lib/clang/22/include/llvm_libc_wrappers
/scratch3/packages/llvm/main-20251109/lib/clang/22/include
/usr/local/include
/usr/include/x86_64-linux-gnu
/usr/include
/nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/cuda-12.3.2-cbovxskbgf5vjjxo4xrovedujpfhcc5o/include
End of search list.
"/scratch3/packages/llvm/main-20251109/bin/clang-22" -cc1 -triple nvptx64-nvidia-cuda -aux-triple x86_64-unknown-linux-gnu -S -disable-free -clear-ast-before-backend -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -ffp-contract=on -fno-rounding-math -no-integrated-as -fcuda-is-device -mllvm -enable-memcpyopt-without-libcalls -fno-threadsafe-statics -fcuda-allow-variadic-functions -mlink-builtin-bitcode /nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/cuda-12.3.2-cbovxskbgf5vjjxo4xrovedujpfhcc5o/nvvm/libdevice/libdevice.10.bc -target-sdk-version=12.3 -mlink-builtin-bitcode /scratch3/packages/llvm/main-20251109/bin/../lib/nvptx64-nvidia-cuda/libomptarget-nvptx.bc -target-cpu sm_86 -target-feature +ptx83 -debugger-tuning=gdb -fno-dwarf-directory-asm -fdebug-compilation-dir=/scratch3/opt/qmcpack/build_A1200_llvmNightly_cuda12.3_offload_cuda_real/src/Message -v -resource-dir /scratch3/packages/llvm/main-20251109/lib/clang/22 -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include/openmp_wrappers -include __clang_openmp_device_functions.h -I/nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/intel-mkl-2020.4.304-s7l3k4j5son3vwid2blpmktk7ckuulry/compilers_and_libraries_2020.4.304/linux/mkl/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include/llvm_libc_wrappers -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/cuda-12.3.2-cbovxskbgf5vjjxo4xrovedujpfhcc5o/include -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -ferror-limit 19 -fmessage-length=135 -fvisibility=protected -fopenmp -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -fcolor-diagnostics -fopenmp-is-target-device -fopenmp-host-ir-file-path /tmp/main-8fffff.bc -fdwarf2-cfi-asm -o /tmp/main-sm_86-11e097.s -x c++ main.cpp
clang -cc1 version 22.0.0git based upon LLVM 22.0.0git default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/include"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/include"
ignoring duplicate directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11"
ignoring duplicate directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11"
ignoring duplicate directory "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward"
ignoring duplicate directory "/scratch3/packages/llvm/main-20251109/lib/clang/22/include"
ignoring duplicate directory "/usr/local/include"
ignoring duplicate directory "/usr/include/x86_64-linux-gnu"
ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/intel-mkl-2020.4.304-s7l3k4j5son3vwid2blpmktk7ckuulry/compilers_and_libraries_2020.4.304/linux/mkl/include
/scratch3/packages/llvm/main-20251109/lib/clang/22/include/openmp_wrappers
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward
/scratch3/packages/llvm/main-20251109/lib/clang/22/include/llvm_libc_wrappers
/scratch3/packages/llvm/main-20251109/lib/clang/22/include
/usr/local/include
/usr/include/x86_64-linux-gnu
/usr/include
/nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/cuda-12.3.2-cbovxskbgf5vjjxo4xrovedujpfhcc5o/include
End of search list.
clang-22: /scratch3/opt/llvm-clang/llvm-project-nightly/clang/include/clang/AST/Expr.h:3086: const clang::Expr* clang::CallExpr::getArg(unsigned int) const: Assertion `Arg < getNumArgs() && "Arg access out of range!"' failed.
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: /scratch3/packages/llvm/main-20251109/bin/clang-22 -cc1 -triple nvptx64-nvidia-cuda -aux-triple x86_64-unknown-linux-gnu -S -disable-free -clear-ast-before-backend -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -ffp-contract=on -fno-rounding-math -no-integrated-as -fcuda-is-device -mllvm -enable-memcpyopt-without-libcalls -fno-threadsafe-statics -fcuda-allow-variadic-functions -mlink-builtin-bitcode /nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/cuda-12.3.2-cbovxskbgf5vjjxo4xrovedujpfhcc5o/nvvm/libdevice/libdevice.10.bc -target-sdk-version=12.3 -mlink-builtin-bitcode /scratch3/packages/llvm/main-20251109/bin/../lib/nvptx64-nvidia-cuda/libomptarget-nvptx.bc -target-cpu sm_86 -target-feature +ptx83 -debugger-tuning=gdb -fno-dwarf-directory-asm -fdebug-compilation-dir=/scratch3/opt/qmcpack/build_A1200_llvmNightly_cuda12.3_offload_cuda_real/src/Message -v -resource-dir /scratch3/packages/llvm/main-20251109/lib/clang/22 -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include/openmp_wrappers -include __clang_openmp_device_functions.h -I/nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/intel-mkl-2020.4.304-s7l3k4j5son3vwid2blpmktk7ckuulry/compilers_and_libraries_2020.4.304/linux/mkl/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include/llvm_libc_wrappers -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /nfs/gce/projects/QMCPACK_dev/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-9.4.0/cuda-12.3.2-cbovxskbgf5vjjxo4xrovedujpfhcc5o/include -internal-isystem /scratch3/packages/llvm/main-20251109/lib/clang/22/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -ferror-limit 19 -fmessage-length=135 -fvisibility=protected -fopenmp -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -fcolor-diagnostics -fopenmp-is-target-device -fopenmp-host-ir-file-path /tmp/main-8fffff.bc -fdwarf2-cfi-asm -o /tmp/main-sm_86-11e097.s -x c++ main.cpp
1. /scratch3/packages/llvm/main-20251109/lib/clang/22/include/xmmintrin.h:2521:5: current parser token '__n128'
2. /scratch3/packages/llvm/main-20251109/lib/clang/22/include/xmmintrin.h:2508:1: parsing function body '_mm_maskmove_si64'
3. /scratch3/packages/llvm/main-20251109/lib/clang/22/include/xmmintrin.h:2508:1: in compound statement ('{}')
4. /scratch3/packages/llvm/main-20251109/lib/clang/22/include/xmmintrin.h:2516:47: in compound statement ('{}')
#0 0x000055bd86a779f0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x2e049f0)
#1 0x000055bd86a746af llvm::sys::RunSignalHandlers() (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x2e016af)
#2 0x000055bd86a74802 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x00007f183d034520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007f183d0889fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#5 0x00007f183d0889fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
#6 0x00007f183d0889fc pthread_kill ./nptl/pthread_kill.c:89:10
#7 0x00007f183d034476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
#8 0x00007f183d01a7f3 abort ./stdlib/abort.c:81:7
#9 0x00007f183d01a71b _nl_load_domain ./intl/loadmsgcat.c:1177:9
#10 0x00007f183d02be96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#11 0x000055bd8a202825 evalShuffleGeneric((anonymous namespace)::EvalInfo&, clang::CallExpr const*, clang::APValue&, llvm::function_ref<std::pair<unsigned int, int> (unsigned int, unsigned int)>) ExprConstant.cpp:0:0
#12 0x000055bd8a23324f (anonymous namespace)::VectorExprEvaluator::VisitCallExpr(clang::CallExpr const*) ExprConstant.cpp:0:0
#13 0x000055bd8a22fbe9 EvaluateVector(clang::Expr const*, clang::APValue&, (anonymous namespace)::EvalInfo&) ExprConstant.cpp:0:0
#14 0x000055bd8a1fd2cd Evaluate(clang::APValue&, (anonymous namespace)::EvalInfo&, clang::Expr const*) ExprConstant.cpp:0:0
#15 0x000055bd8a22c056 (anonymous namespace)::VectorExprEvaluator::VisitCastExpr(clang::CastExpr const*) ExprConstant.cpp:0:0
#16 0x000055bd8a22fbe9 EvaluateVector(clang::Expr const*, clang::APValue&, (anonymous namespace)::EvalInfo&) ExprConstant.cpp:0:0
#17 0x000055bd8a1fd2cd Evaluate(clang::APValue&, (anonymous namespace)::EvalInfo&, clang::Expr const*) ExprConstant.cpp:0:0
#18 0x000055bd8a1ea7f8 clang::StmtVisitorBase<llvm::make_const_ptr, (anonymous namespace)::LValueExprEvaluator, bool>::Visit(clang::Stmt const*) ExprConstant.cpp:0:0
#19 0x000055bd8a1edef8 EvaluateLValue(clang::Expr const*, (anonymous namespace)::LValue&, (anonymous namespace)::EvalInfo&, bool) ExprConstant.cpp:0:0
#20 0x000055bd8a1fd245 Evaluate(clang::APValue&, (anonymous namespace)::EvalInfo&, clang::Expr const*) ExprConstant.cpp:0:0
#21 0x000055bd8a1fde46 EvaluateAsRValue((anonymous namespace)::EvalInfo&, clang::Expr const*, clang::APValue&) ExprConstant.cpp:0:0
#22 0x000055bd8a2017fb clang::Expr::EvaluateForOverflow(clang::ASTContext const&) const (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x658e7fb)
#23 0x000055bd89123a3e clang::Sema::CheckForIntOverflow(clang::Expr const*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x54b0a3e)
#24 0x000055bd8915ae54 clang::Sema::CheckCompletedExpr(clang::Expr*, clang::SourceLocation, bool) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x54e7e54)
#25 0x000055bd8951cf8e clang::Sema::ActOnFinishFullExpr(clang::Expr*, clang::SourceLocation, bool, bool, bool) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x58a9f8e)
#26 0x000055bd8984ff5e clang::Sema::ActOnExprStmt(clang::ActionResult<clang::Expr*, true>, bool) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x5bdcf5e)
#27 0x000055bd88fee884 clang::Parser::ParseExprStatement(clang::Parser::ParsedStmtContext) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x537b884)
#28 0x000055bd88fe6ea0 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x5373ea0)
#29 0x000055bd88fe77de clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x53747de)
#30 0x000055bd88fef04f clang::Parser::ParseCompoundStatementBody(bool) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x537c04f)
#31 0x000055bd88fef7f8 void llvm::function_ref<void ()>::callback_fn<clang::Parser::ParseCompoundStatement(bool, unsigned int)::'lambda'()>(long) ParseStmt.cpp:0:0
#32 0x000055bd8a8a26d5 clang::StackExhaustionHandler::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x6c2f6d5)
#33 0x000055bd88fdffeb clang::Parser::ParseCompoundStatement(bool, unsigned int) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x536cfeb)
#34 0x000055bd88fe5c77 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x5372c77)
#35 0x000055bd88fe77de clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x53747de)
#36 0x000055bd88fe8afb clang::Parser::ParseStatement(clang::SourceLocation*, clang::Parser::ParsedStmtContext, clang::LabelDecl*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x5375afb)
#37 0x000055bd88fe90f1 clang::Parser::ParseIfStatement(clang::SourceLocation*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x53760f1)
#38 0x000055bd88fe691c clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x537391c)
#39 0x000055bd88fe77de clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x53747de)
#40 0x000055bd88fef04f clang::Parser::ParseCompoundStatementBody(bool) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x537c04f)
#41 0x000055bd88fef8cf clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x537c8cf)
#42 0x000055bd88ee9a6f clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x5276a6f)
#43 0x000055bd88f2e1cd clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x52bb1cd)
#44 0x000055bd88ee3e8c clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x5270e8c)
#45 0x000055bd88ee45ef clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x52715ef)
#46 0x000055bd88eee166 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x527b166)
#47 0x000055bd88eef1d5 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x527c1d5)
#48 0x000055bd88ecbfba clang::ParseAST(clang::Sema&, bool, bool) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x5258fba)
#49 0x000055bd876e0e09 clang::FrontendAction::Execute() (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x3a6de09)
#50 0x000055bd87660945 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x39ed945)
#51 0x000055bd877d6343 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0x3b63343)
#52 0x000055bd84ac3c77 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0xe50c77)
#53 0x000055bd84aba36a ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) driver.cpp:0:0
#54 0x000055bd84abe668 clang_main(int, char**, llvm::ToolContext const&) (/scratch3/packages/llvm/main-20251109/bin/clang-22+0xe4b668)
#55 0x000055bd849c9adb main (/scratch3/packages/llvm/main-20251109/bin/clang-22+0xd56adb)
#56 0x00007f183d01bd90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#57 0x00007f183d01be40 call_init ./csu/../csu/libc-start.c:128:20
#58 0x00007f183d01be40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#59 0x000055bd84ab9a85 _start (/scratch3/packages/llvm/main-20251109/bin/clang-22+0xe46a85)
clang++: error: unable to execute command: Aborted (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 22.0.0git (https://github.com/llvm/llvm-project.git 64ad5d976dbd9bb140d81440c7d9cb093278dd31)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /scratch3/packages/llvm/main-20251109/bin
Build config: +assertions
Configuration file: /scratch3/packages/llvm/main-20251109/bin/x86_64-unknown-linux-gnu.cfg
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/main-sm_86-3749d5.cpp
clang++: note: diagnostic msg: /tmp/main-054f43.cpp
clang++: note: diagnostic msg: /tmp/main-sm_86-3749d5.sh
clang++: note: diagnostic msg:
********************
Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"constexprAnything related to constant evaluationAnything related to constant evaluationcrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]