https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122774
--- Comment #4 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
(In reply to d7d1cd from comment #3)
> This example seems to demonstrate the same error, but is more concise:
> $ cat header.h
> #pragma once
> struct Foo {};
>
> $ cat module.ixx
> module;
> #include "header.h"
> export module M;
> export Foo foo() { return {}; }
>
> $ cat main.cc
> import M;
> #include "header.h"
> int main() {}
>
> Here in the online compiler: https://godbolt.org/z/x5bdMrx39
Thanks, though that doesn't appear to reproduce the ICE, just the redeclaration
error (which is PR99000).