public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105322] New: [modules] ICE with constexpr object of local class type from another function
@ 2022-04-20 20:08 ppalka at gcc dot gnu.org
  2022-04-20 20:11 ` [Bug c++/105322] " ppalka at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-04-20 20:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105322

            Bug ID: 105322
           Summary: [modules] ICE with constexpr object of local class
                    type from another function
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

Reduced from PR105297:

$ cat 105297.C
constexpr auto foo() {
  struct S { int d; };
  return S{0};
}

inline void bar() {
  constexpr auto t = foo();
}

$ g++ -fmodules-ts 105297.C
105297.C: internal compiler error: in insert, at cp/module.cc:4800
0x6da0fd trees_out::insert(tree_node*, walk_kind)
        /home/patrick/code/gcc/gcc/cp/module.cc:4800
0xa8a4ea trees_out::decl_node(tree_node*, walk_kind)
        /home/patrick/code/gcc/gcc/cp/module.cc:8367
0xa8acf2 trees_out::tree_node(tree_node*)
        /home/patrick/code/gcc/gcc/cp/module.cc:9102
0xa8bff1 trees_out::core_vals(tree_node*)
        /home/patrick/code/gcc/gcc/cp/module.cc:6090
0xa8eb54 trees_out::tree_node_vals(tree_node*)
        /home/patrick/code/gcc/gcc/cp/module.cc:7072
0xa8eb54 trees_out::tree_value(tree_node*)
        /home/patrick/code/gcc/gcc/cp/module.cc:8909
0xa8ab54 trees_out::tree_node(tree_node*)
        /home/patrick/code/gcc/gcc/cp/module.cc:9107
0xa8b84f trees_out::core_vals(tree_node*)
        /home/patrick/code/gcc/gcc/cp/module.cc:6003

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

end of thread, other threads:[~2023-10-24  0:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 20:08 [Bug c++/105322] New: [modules] ICE with constexpr object of local class type from another function ppalka at gcc dot gnu.org
2022-04-20 20:11 ` [Bug c++/105322] " ppalka at gcc dot gnu.org
2022-04-21 12:35 ` cvs-commit at gcc dot gnu.org
2022-04-28  3:54 ` guojiufu at gcc dot gnu.org
2022-10-21 19:37 ` ppalka at gcc dot gnu.org
2023-04-26  6:55 ` rguenth at gcc dot gnu.org
2023-07-27  9:22 ` rguenth at gcc dot gnu.org
2023-10-20 20:25 ` cvs-commit at gcc dot gnu.org
2023-10-24  0:47 ` ppalka at gcc dot gnu.org
2023-10-24  0:47 ` ppalka 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).