Summary: | [modules] internal compiler error: in tree_node, at cp/module.cc:9105 when compile module partitions | ||
---|---|---|---|
Product: | gcc | Reporter: | owent <owt5008137> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | johelegp, mpolacek, oleg, ppalka, tortoise_74, webrown.cpp |
Priority: | P3 | Keywords: | ice-on-valid-code |
Version: | 11.0 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2022-07-26 00:00:00 | |
Bug Depends on: | |||
Bug Blocks: | 103524 |
Description
owent
2021-03-25 12:11:26 UTC
Reproduced. We have __dynamic_cast without DECL_CONTEXT and so ICE in 9050 if (!DECL_CONTEXT (t)) 9051 { 9052 /* There are a few cases of decls with no context. We'll write 9053 these by value, but first assert they are cases we expect. */ 9054 gcc_checking_assert (ref == WK_normal); 9055 switch (TREE_CODE (t)) 9056 { 9057 default: gcc_unreachable (); PR 106304 has a much simpler single-file reproducer that ICEs at the same line. I had a issue I believed to be related but in attempting to create a reproducer got several different ICEs so I have submitted a separate ticket - see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107191 Same issue as the recently fixed PR106304 *** This bug has been marked as a duplicate of bug 106304 *** |