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

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

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

--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
// bug_a.ii
namespace std { class type_info {}; }

// bug_b.ii
namespace std { class type_info; }

import "bug_a.ii";

namespace std {
  const type_info* __cxa_exception_type () noexcept;
}

evvm1702:160>./cc1plus -quiet -fmodule-header bug_a.ii && ./cc1plus -quiet
-fmodule-header bug_b.ii 
bug_b.ii: internal compiler error: in write_cluster, at cp/module.cc:14506
0xcdfd72 module_state::write_cluster(elf_out*, depset**, unsigned int,
depset::hash&, unsigned int*, unsigned int*)
        ../../../src/gcc/cp/module.cc:14506
0xce9486 module_state::write(elf_out*, cpp_reader*)
        ../../../src/gcc/cp/module.cc:17763
0xcef73a finish_module_processing(cpp_reader*)
        ../../../src/gcc/cp/module.cc:19870

Reply via email to