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 via email to