public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] c++: add deprecation notice for -fconcepts-ts
@ 2024-01-30 23:18 Marek Polacek
  2024-01-31  8:40 ` Richard Biener
  0 siblings, 1 reply; 9+ messages in thread
From: Marek Polacek @ 2024-01-30 23:18 UTC (permalink / raw)
  To: GCC Patches, Jason Merrill

Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk?

-- >8 --
We plan to deprecate -fconcepts-ts in GCC 15 and 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 will be deprecated in GCC 15.
---
 gcc/c-family/c-opts.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gcc/c-family/c-opts.cc b/gcc/c-family/c-opts.cc
index b38a1225ac4..4cb69c6aefc 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 deprecated in GCC 15.  */
+  if (flag_concepts_ts)
+    inform (input_location, "%<-fconcepts-ts%> will be deprecated 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)

base-commit: f2061b2a9641c2228d4e2d86f19532ad7e93d627
-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-01-31 19:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-30 23:18 [PATCH] c++: add deprecation notice for -fconcepts-ts Marek Polacek
2024-01-31  8:40 ` Richard Biener
2024-01-31 13:53   ` Jason Merrill
2024-01-31 13:55     ` Richard Biener
2024-01-31 15:37       ` Jason Merrill
2024-01-31 15:55     ` [PATCH v2] " Marek Polacek
2024-01-31 19:00       ` Jason Merrill
2024-01-31 19:07         ` Marek Polacek
2024-01-31 19:26           ` Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).