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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is not a bug in GCC, the C++ standard allows any header to include any
other. The bug is in your code, and we can't generally diagnose it.

It's simply not possible to implement <algorithm> without at least some of the
concepts defined in <concepts>, because the algos are specified in terms of
those concepts.

Similarly, nearly every header includes the <type_traits> header.

While it would be nice if we didn't expose all of <concepts> for any program
that doesn't include it explicitly, that's just not practical, sorry.

Reply via email to