From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3E8363858C41; Wed, 20 Mar 2024 21:02:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E8363858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710968552; bh=ZEG65M83zsUazQtcACgVm9Vp/1h2TzwDGNZKc7uK4q0=; h=From:To:Subject:Date:From; b=uVGTuMRuX2019KUEwk0G274mvV+tEJ5H5wwNcAdisdVuUbJUmraOqD/mrWy+NjUSH OWIhEfF9qM4QNVMisMYReF+AxoYYgeIlo3ADgrCNTu8GCUP6k8kexgFvathA2yYAgi Ts7QaiGfUUP1UweJgGbHXZFaFAEJWo0LIgGpDWo4= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114409] New: ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794) Date: Wed, 20 Mar 2024 21:02:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114409 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=3D57751&action=3Dedit EarlyCSE.cpp.ii.xz While working on PR114403, I was adding novector pragmas and ended up hitti= ng an ICE. ``` $ g++ -c /home/sam/data/build/llvm-project-test/lib/Transforms/Scalar/CMakeFiles/LLV= MScalarOpts.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 =E2=80=98llvm::ScopedHashTableScope::~ScopedHashTableScope() [with K =3D {anonymous}::SimpleValue;= V =3D llvm::Value*; KInfo =3D llvm::DenseMapInfo<{anonymous}::SimpleValue>; Alloc= atorTy =3D llvm::RecyclingAllocator, llvm::ScopedHashTableVal<{anonymous}::SimpleValue, llvm::Value*> >]=E2=80= =99: /home/sam/git/llvm-project/llvm/lib/Transforms/Scalar/EarlyCSE.cpp:671:9:= =20=20 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 *ThisEntry =3D 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:2= 1794 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:2= 0637 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:2= 1776 0x55963d07cfa1 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:1= 9438 0x55963d07dbe9 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:1= 8676 0x55963d07cfe3 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:1= 8398 0x55963d07cea6 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:1= 8771 0x55963d07cfe3 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:1= 8398 0x55963d07cea6 tsubst_stmt /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:1= 8771 0x55963d3347e8 instantiate_body /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:2= 7064 0x55963cf46498 instantiate_decl(tree_node*, bool, bool) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:2= 7349 0x55963ca8a8c1 instantiate_pending_templates(int) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/pt.cc:2= 7425 0x55963ca7f13a c_parse_final_cleanups() =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cp/decl2.cc:5151 0x55963d25b647 c_common_parse_file() =20=20=20=20=20=20=20 /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 for instructions. ```=