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

--- Comment #2 from Robert Broglia <robert.broglia at gmail dot com> ---
Upon further testing, looks like it's not related to IG::DelegateFunc but
rather pulling in any of std::literals into the exported IG namespace which
makes reproducing the ICE much simpler. I have reduced the imagine.ccm module
to this:

/////
export module imagine;
export import std;

export namespace IG
{
using namespace std::literals::string_view_literals; // or chrono_literals,
etc...
}
/////

and tests.ccm to:

/////
export module tests;
import imagine;

using namespace IG;
/////

That will trigger the ICE when compiling tests.ccm. Hope this helps track down
the issue and thanks for looking into this.

Reply via email to