https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114409
Bug ID: 114409 Summary: ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 57751 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57751&action=edit EarlyCSE.cpp.ii.xz While working on PR114403, I was adding novector pragmas and ended up hitting an ICE. ``` $ g++ -c /home/sam/data/build/llvm-project-test/lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/EarlyCSE.cpp.ii In file included from /home/sam/git/llvm-project/llvm/lib/Transforms/Scalar/EarlyCSE.cpp:18: /home/sam/git/llvm-project/llvm/include/llvm/ADT/ScopedHashTable.h: In instantiation of ‘llvm::ScopedHashTableScope<K, V, KInfo, AllocatorTy>::~ScopedHashTableScope() [with K = {anonymous}::SimpleValue; V = llvm::Value*; KInfo = llvm::DenseMapInfo<{anonymous}::SimpleValue>; AllocatorTy = llvm::RecyclingAllocator<llvm::BumpPtrAllocatorImpl<>, llvm::ScopedHashTableVal<{anonymous}::SimpleValue, llvm::Value*> >]’: /home/sam/git/llvm-project/llvm/lib/Transforms/Scalar/EarlyCSE.cpp:671:9: required from here 671 | : Scope(AvailableValues), LoadScope(AvailableLoads), | ^~~~~~~~~~~~~~~~~~~~~~ /home/sam/git/llvm-project/llvm/include/llvm/ADT/ScopedHashTable.h:241:36: internal compiler error: in tsubst_expr, at cp/pt.cc:21794 241 | while (ScopedHashTableVal<K, V> *ThisEntry = LastValInScope) { | ^~~~~~~~~ 0x55963b55a154 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:21794 0x55963cdda158 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:20637 0x55963b55a4ff tsubst_expr(tree_node*, tree_node*, int, tree_node*) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:21776 0x55963d07cfa1 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:19438 0x55963d07dbe9 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:18676 0x55963d07cfe3 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:18398 0x55963d07cea6 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:18771 0x55963d07cfe3 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:18398 0x55963d07cea6 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:18771 0x55963d3347e8 instantiate_body /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:27064 0x55963cf46498 instantiate_decl(tree_node*, bool, bool) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:27349 0x55963ca8a8c1 instantiate_pending_templates(int) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:27425 0x55963ca7f13a c_parse_final_cleanups() /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/decl2.cc:5151 0x55963d25b647 c_common_parse_file() /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/c-family/c-opts.cc:1329 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ```