[Bug c++/100583] [modules] ICE when importing <span>
johelegp at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Nov 12 18:58:16 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100583
--- Comment #4 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> ---
As pointed out in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103118#c3:
> What works is including them in a non-module unit translation unit.
>
> ```C++
> #if defined(__GNUC__) and not defined(__clang__)
> # include <chrono> // Workaround GCC bug 103118.
> # include <span> // Workaround GCC bug 100583.
> #endif
> import waarudo.geometries;
> import waarudo.numbers;
> import waarudo.quantities;
> #include <cassert>
> ```
More information about the Gcc-bugs
mailing list