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.
This commit is contained in:
parent
f72b1a44ff
commit
1c9b440bf6
1 changed files with 1 additions and 1 deletions
|
@ -1102,7 +1102,7 @@ c_cpp_builtins (cpp_reader *pfile)
|
|||
cpp_define (pfile, "__cpp_deleted_function=202403L");
|
||||
cpp_define (pfile, "__cpp_variadic_friend=202403L");
|
||||
}
|
||||
if (flag_concepts)
|
||||
if (flag_concepts && cxx_dialect > cxx14)
|
||||
cpp_define (pfile, "__cpp_concepts=202002L");
|
||||
if (flag_contracts)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue