https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116827
--- Comment #7 from Iain Sandoe ---
(In reply to Francois-Xavier Coudert from comment #6)
> (In reply to Jonathan Wakely from comment #5)
> > > #if defined(__has_feature) && __has_feature(modules)
> >
> > This is a bug. If __has_feature is _not
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116827
--- Comment #6 from Francois-Xavier Coudert ---
(In reply to Jonathan Wakely from comment #5)
> > #if defined(__has_feature) && __has_feature(modules)
>
> This is a bug. If __has_feature is _not_ define, then __has_feature(modules)
> would not
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116827
--- Comment #5 from Jonathan Wakely ---
(In reply to Francois-Xavier Coudert from comment #3)
> where that new USE_CLANG_TYPES macro is defined at the top of the file:
>
>
> #if defined(__has_feature) && __has_feature(modules)
This is a b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116827
--- Comment #4 from Francois-Xavier Coudert ---
Simple reproducer without any libstdc++ indeed:
$ cat a.cpp
#include
$ g++ a.cpp -fmodule-header