public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/101532] New: [12 Regression] ICE in finish_expr_stmt, at cp/semantics.c:859
Date: Tue, 20 Jul 2021 16:52:46 +0000	[thread overview]
Message-ID: <bug-101532-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             reply	other threads:[~2021-07-20 16:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-20 16:52 gscfq@t-online.de [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-101532-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).