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++/107003] New: ICE in mangle_decl, at cp/mangle.cc:4112
Date: Wed, 21 Sep 2022 17:38:29 +0000	[thread overview]
Message-ID: <bug-107003-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 107003
           Summary: ICE in mangle_decl, at cp/mangle.cc:4112
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Affects versions down to r6, at -O2+ :


$ cat z1.cc
#include <experimental/list>
namespace pmr = std::experimental::pmr;
void f ()
{
  using pl = pmr::list<int>;
  pl a;
  return;
}


$ gcc-13-20220918 -c z1.cc -O2 -flto -fno-weak
during IPA pass: *free_lang_data
In file included from .../include/c++/13.0.0/experimental/list:38,
                 from z1.cc:1:
.../include/c++/13.0.0/experimental/memory_resource:520:11: internal compiler
error: in mangle_decl, at cp/mangle.cc:4112
  520 |     class type final : public memory_resource
      |           ^~~~
0x95d694 mangle_decl(tree_node*)
        ../../gcc/cp/mangle.cc:4111
0x1504062 decl_assembler_name(tree_node*)
        ../../gcc/tree.cc:741
0x1536050 assign_assembler_name_if_needed(tree_node*)
        ../../gcc/tree.cc:856
0x201be6d free_lang_data_in_cgraph
        ../../gcc/ipa-free-lang-data.cc:1064
0x201be6d free_lang_data
        ../../gcc/ipa-free-lang-data.cc:1109
0x201be6d execute
        ../../gcc/ipa-free-lang-data.cc:1176

             reply	other threads:[~2022-09-21 17:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-21 17:38 gscfq@t-online.de [this message]
2022-09-21 17:43 ` [Bug c++/107003] " mpolacek at gcc dot gnu.org
2022-09-22 19:20 ` [Bug c++/107003] ICE in mangle_decl, at cp/mangle.cc:4112 since r6-1066-g233ce289250944dd marxin 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-107003-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).