https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122774
d7d1cd <d7d1cd at mail dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |d7d1cd at mail dot ru
--- Comment #3 from d7d1cd <d7d1cd at mail dot ru> ---
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