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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2021-02-17

--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
// pr98741_a.H
namespace foo
{
}
// pr98741_b.H
namespace foo
{
}
// pr98741_b.C
export module Foo;
import "pr98741_a.H";
// pr98741_d.C
module Foo;
import "pr98741_b.H";

(added an assert earlier)

zathras:178>./cc1plus -fmodules-ts -quiet -fmodule-header pr98741_a.H
zathras:179>./cc1plus -fmodules-ts -quiet -fmodule-header pr98741_b.H
zathras:180>./cc1plus -fmodules-ts -quiet pr98741_c.C        
zathras:181>./cc1plus -fmodules-ts -quiet pr98741_d.C
pr98741_d.C:2:22: internal compiler error: in append_imported_binding_slot, at
cp/name-lookup.c:371
    2 | import "pr98741_b.H";
      |                      ^
0xd2fe45 append_imported_binding_slot
        ../../../src/gcc/cp/name-lookup.c:371
0xd5010c add_imported_namespace(tree_node*, tree_node*, unsigned int, unsigned
int, bool, bool)
        ../../../src/gcc/cp/name-lookup.c:9024

Reply via email to