The header is empty unless Concepts are supported, but defines the __cpp_lib_span feature test macro unconditionally. It should be guarded by the same conditions as in . libstdc++-v3/ChangeLog: PR libstdc++/97869 * include/precompiled/stdc++.h: Include . * include/std/version (__cpp_lib_span): Check __cpp_lib_concepts before defining. Tested powerpc64le-linux. Committed to trunk. This also needs to be backported to gcc-10.