https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80062
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |msebor at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- According to the C++ Status page (https://gcc.gnu.org/projects/cxx-status.html), in C++ 11 and C++ 14 modes the two macros are set as follows: __cpp_range_based_for >= 200907 __cpp_static_assert >= 200410 The conditionals in the snippet copied from the c_cpp_builtins function set the macros for the two C++ modes above to the documented values. I suppose the conditionals could be merged into one but it's not necessary. The code is correct as is. Thus resolving as invalid (but thank you for raising the report nonetheless).