c++: -fconcepts and __cpp_concepts
commitcc56607f21f77d4e9c8146cd1b0400fddea589c6
authorJason Merrill <jason@redhat.com>
Fri, 23 Jun 2023 17:54:07 +0000 (23 13:54 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 14 Aug 2023 17:33:58 +0000 (14 13:33 -0400)
treed92fbe8dd8c126f0468ed312e19027957f8e8a10
parent2d2b05f0691799f03062bf5c436462f14cad3e7c
c++: -fconcepts and __cpp_concepts

Since -fconcepts no longer implies -fconcepts-ts, we shouldn't advertise TS
support with __cpp_concepts=201507L.  Also fix one case where -std=c++14
-fconcepts wasn't working (as found by range-v3 calendar).  Fixing other
cases is not a priority, probably better to reject that flag combination if
there are further issues.

gcc/c-family/ChangeLog:

* c-cppbuiltin.cc (c_cpp_builtins): Adjust __cpp_concepts.

gcc/cp/ChangeLog:

* parser.cc (cp_parser_simple_type_specifier): Handle -std=c++14
-fconcepts.
gcc/c-family/c-cppbuiltin.cc
gcc/cp/parser.cc