public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/114409] New: ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794)
@ 2024-03-20 21:02 sjames at gcc dot gnu.org
  2024-03-20 21:05 ` [Bug c++/114409] " sjames at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-03-20 21:02 UTC (permalink / raw)
  To: gcc-bugs

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.
```

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2024-04-11 10:11 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-20 21:02 [Bug c++/114409] New: ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794) sjames at gcc dot gnu.org
2024-03-20 21:05 ` [Bug c++/114409] " sjames at gcc dot gnu.org
2024-03-20 21:16 ` pinskia at gcc dot gnu.org
2024-03-20 21:21 ` pinskia at gcc dot gnu.org
2024-03-20 21:26 ` pinskia at gcc dot gnu.org
2024-03-20 21:29 ` sjames at gcc dot gnu.org
2024-03-21  9:37 ` rguenth at gcc dot gnu.org
2024-03-21 13:17 ` jakub at gcc dot gnu.org
2024-03-21 13:26 ` jakub at gcc dot gnu.org
2024-03-21 13:41 ` [Bug c++/114409] [14 Regression] " jakub at gcc dot gnu.org
2024-03-21 13:53 ` jakub at gcc dot gnu.org
2024-03-21 14:31 ` jakub at gcc dot gnu.org
2024-03-21 20:39 ` pinskia at gcc dot gnu.org
2024-04-10  7:58 ` [Bug c++/114409] [14 Regression] ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794) since r14-4229-g9c62af101e11e1cce573c2b3d2e18b403412dbc8 rguenth at gcc dot gnu.org
2024-04-10 12:40 ` jakub at gcc dot gnu.org
2024-04-10 12:49 ` jakub at gcc dot gnu.org
2024-04-10 12:50 ` jakub at gcc dot gnu.org
2024-04-11  7:48 ` cvs-commit at gcc dot gnu.org
2024-04-11 10:10 ` jakub at gcc dot gnu.org
2024-04-11 10:11 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).