aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2024-01-30 17:11:34 -0500
committerMarek Polacek <polacek@redhat.com>2024-01-31 15:12:16 -0500
commitd836db149d439658cb98688f3f5c6ed58446e333 (patch)
tree237a1bc4bf6f6b5932e51dd9629c27743c216bcf /gcc/c-family
parentf6ba433d3c30c20fadd393eed31617a4da81789c (diff)
downloadgcc-d836db149d439658cb98688f3f5c6ed58446e333.zip
gcc-d836db149d439658cb98688f3f5c6ed58446e333.tar.gz
gcc-d836db149d439658cb98688f3f5c6ed58446e333.tar.bz2
c++: add deprecation notice for -fconcepts-ts
We plan to remove -fconcepts-ts in GCC 15 and thus remove the flag_concepts_ts code. This note is an admonishing reminder to convert the Concepts TS code to C++20 Concepts. gcc/c-family/ChangeLog: * c-opts.cc (c_common_post_options): Add an inform saying that -fconcepts-ts is deprecated and will be removed in GCC 15. gcc/ChangeLog: * doc/invoke.texi: Mention that -fconcepts-ts was deprecated in GCC 14.
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/c-opts.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-family/c-opts.cc b/gcc/c-family/c-opts.cc
index b38a122..b845aff 100644
--- a/gcc/c-family/c-opts.cc
+++ b/gcc/c-family/c-opts.cc
@@ -1139,6 +1139,11 @@ c_common_post_options (const char **pfilename)
if (cxx_dialect >= cxx20 || flag_concepts_ts)
flag_concepts = 1;
+ /* -fconcepts-ts will be removed in GCC 15. */
+ if (flag_concepts_ts)
+ inform (input_location, "%<-fconcepts-ts%> is deprecated and will be "
+ "removed in GCC 15; please convert your code to C++20 concepts");
+
/* -fimmediate-escalation has no effect when immediate functions are not
supported. */
if (flag_immediate_escalation && cxx_dialect < cxx20)