public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/99480] [modules] ICE in import_entity_index, at cp/module.cc:3952
Date: Mon, 22 Mar 2021 16:04:57 +0000	[thread overview]
Message-ID: <bug-99480-4-2w4ogG9oCq@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99480-4@http.gcc.gnu.org/bugzilla/>

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

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-03-22
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
// bug_a.ii
template<typename _Tp>
struct atomic;

template<typename _Tp>
struct atomic<_Tp*>;

// bug_b.ii
import  "bug_a.ii";

template<typename _Tp>
struct atomic<_Tp*>
{
};
./cc1plus -std=c++20 -quiet -fmodule-header bug_a.ii && ./cc1plus -std=c++20
-quiet -fmodule-header bug_b.ii
bug_b.ii:5:1: internal compiler error: in import_entity_index, at
cp/module.cc:3943
    5 | {
      | ^
0xc8affe import_entity_index
        ../../../src/gcc/cp/module.cc:3943
0xcc4350 module_may_redeclare(tree_node*)
        ../../../src/gcc/cp/module.cc:18440
0xe23fda begin_class_definition(tree_node*)
        ../../../src/gcc/cp/semantics.c:3334

  reply	other threads:[~2021-03-22 16:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-09  7:39 [Bug c++/99480] New: " alexander.lelyakin at googlemail dot com
2021-03-22 16:04 ` nathan at gcc dot gnu.org [this message]
2021-03-22 19:41 ` [Bug c++/99480] " cvs-commit at gcc dot gnu.org
2021-03-22 19:42 ` nathan 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-99480-4-2w4ogG9oCq@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).