public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101532] New: [12 Regression] ICE in finish_expr_stmt, at cp/semantics.c:859
@ 2021-07-20 16:52 gscfq@t-online.de
  2021-07-20 16:57 ` [Bug c++/101532] " mpolacek at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gscfq@t-online.de @ 2021-07-20 16:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101532
           Summary: [12 Regression] ICE in finish_expr_stmt, at
                    cp/semantics.c:859
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20210704 and 20210711 :


$ cat z1.cc
class A {
  ~A() {}
};
template <class> class B {
  A f = [] {};
};
B<int> c;


$ cat z2.cc
class A {
  ~A() {}
};
template <class T> class B {
  A f = [](T) {};
};
B<int> c;


$ g++-12-20210718 -c z1.cc
z1.cc: In function 'void __static_initialization_and_destruction_0(int, int)':
z1.cc:7:8: internal compiler error: in finish_expr_stmt, at cp/semantics.c:859
    7 | B<int> c;
      |        ^
0x9d659c finish_expr_stmt(tree_node*)
        ../../gcc/cp/semantics.c:859
0x826644 one_static_initialization_or_destruction
        ../../gcc/cp/decl2.c:4118
0x826d56 do_static_initialization_or_destruction
        ../../gcc/cp/decl2.c:4216
0x82d58e c_parse_final_cleanups()
        ../../gcc/cp/decl2.c:5062

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

end of thread, other threads:[~2022-05-11 14:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-20 16:52 [Bug c++/101532] New: [12 Regression] ICE in finish_expr_stmt, at cp/semantics.c:859 gscfq@t-online.de
2021-07-20 16:57 ` [Bug c++/101532] " mpolacek at gcc dot gnu.org
2021-07-20 17:00 ` mpolacek at gcc dot gnu.org
2022-01-10 12:13 ` pinskia at gcc dot gnu.org
2022-01-20 12:42 ` rguenth at gcc dot gnu.org
2022-01-25 20:05 ` cvs-commit at gcc dot gnu.org
2022-01-25 20:06 ` ppalka at gcc dot gnu.org
2022-04-12 23:44 ` cvs-commit at gcc dot gnu.org
2022-04-12 23:47 ` ppalka at gcc dot gnu.org
2022-05-09 23:32 ` cvs-commit at gcc dot gnu.org
2022-05-11 14:59 ` cvs-commit 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).