]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: don't advertise C++20 concepts in C++14
authorJason Merrill <jason@redhat.com>
Tue, 1 Oct 2024 14:58:35 +0000 (10:58 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 1 Oct 2024 21:40:49 +0000 (17:40 -0400)
commit1c9b440bf6768c1053101c4a473f5fc9757f52a5
tree7383d340e3ac6497d029e0fe49cba3a0205a4bb1
parentf72b1a44ff582041b02d5abe0a6c8556057e6183
c++: don't advertise C++20 concepts in C++14

There have been various problems with -std=c++14 -fconcepts; let's stop
defining the feature test macro in that case.

gcc/c-family/ChangeLog:

* c-cppbuiltin.cc (c_cpp_builtins): Don't define __cpp_concepts
before C++17.
gcc/c-family/c-cppbuiltin.cc