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++/101098] New: [11/12 Regression] ICE in instantiate_body, at cp/pt.c:25858
Date: Wed, 16 Jun 2021 17:19:34 +0000	[thread overview]
Message-ID: <bug-101098-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 101098
           Summary: [11/12 Regression] ICE in instantiate_body, at
                    cp/pt.c:25858
           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 20200621 and 20200628, r9 accepts it.
With option -fconcepts and file g++.dg/cpp2a/concepts-explicit-spec1.C
or the following variant :


$ cat z1.cc
template<typename T> concept C = __is_class(T);
struct Y { int n; } y;
template<C T> void g(T) { }
int called;
template<> void g(Y) { called = 3; }
int main() { g(y); }


$ g++-9 -c z1.cc -fconcepts
$
$ g++-12-20210613 -c z1.cc -fconcepts
z1.cc: In instantiation of 'void g(T) [with T = Y]':
z1.cc:6:15:   required from here
z1.cc:3:27: internal compiler error: Segmentation fault
    3 | template<C T> void g(T) { }
      |                           ^
0xd4d42f crash_signal
        ../../gcc/toplev.c:327
0x822254 instantiate_body
        ../../gcc/cp/pt.c:25858
0x823223 instantiate_decl(tree_node*, bool, bool)
        ../../gcc/cp/pt.c:26141
0x83d9eb instantiate_pending_templates(int)
        ../../gcc/cp/pt.c:26220
0x752232 c_parse_final_cleanups()
        ../../gcc/cp/decl2.c:4966

             reply	other threads:[~2021-06-16 17:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-16 17:19 gscfq@t-online.de [this message]
2021-06-17  6:38 ` [Bug c++/101098] " rguenth at gcc dot gnu.org
2021-06-17  9:30 ` [Bug c++/101098] [11/12 Regression] ICE in instantiate_body, at cp/pt.c:25858 since r10-3735-gcb57504a55015891 marxin at gcc dot gnu.org
2021-06-21 18:04 ` jason at gcc dot gnu.org
2021-07-09 17:49 ` [Bug c++/101098] [11/12 Regression] ICE with explicit specialization of constrained function template jason at gcc dot gnu.org
2021-07-09 20:13 ` cvs-commit at gcc dot gnu.org
2021-07-09 20:14 ` cvs-commit at gcc dot gnu.org
2021-07-09 20:16 ` jason at gcc dot gnu.org
2022-12-07 15:55 ` ppalka 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-101098-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).