From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1734) id 856DE385840C; Wed, 31 Jan 2024 20:12:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 856DE385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706731972; bh=ymKsLBDCGxr24e6kHHW6LnXtqHygdrRmuafZdjGYhU4=; h=From:To:Subject:Date:From; b=V/qp96HI4X1uY4yBElUEhPieu7Oj7s3eP250n0VFEV0QHkIRCLqrYssBhFNDaKLdT mw0vdkvdN41a92eikmk6fs5gyMQdZl14/35qm3xravCT6fuq0z0iTKhXYPrGY7E2sG FkBICFgqGWR5ZvuV8MN713PmgR++CRcaMVUYQI/Y= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Marek Polacek To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-8667] c++: add deprecation notice for -fconcepts-ts X-Act-Checkin: gcc X-Git-Author: Marek Polacek X-Git-Refname: refs/heads/trunk X-Git-Oldrev: f6ba433d3c30c20fadd393eed31617a4da81789c X-Git-Newrev: d836db149d439658cb98688f3f5c6ed58446e333 Message-Id: <20240131201252.856DE385840C@sourceware.org> Date: Wed, 31 Jan 2024 20:12:52 +0000 (GMT) List-Id: https://gcc.gnu.org/g:d836db149d439658cb98688f3f5c6ed58446e333 commit r14-8667-gd836db149d439658cb98688f3f5c6ed58446e333 Author: Marek Polacek Date: Tue Jan 30 17:11:34 2024 -0500 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. Diff: --- gcc/c-family/c-opts.cc | 5 +++++ gcc/doc/invoke.texi | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/c-family/c-opts.cc b/gcc/c-family/c-opts.cc index b38a1225ac43..b845aff2226f 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) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index eb931b984e8f..ca2c0e90452d 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -3204,7 +3204,9 @@ the language standard, so @option{-fconcepts} defaults to on. Some constructs that were allowed by the earlier C++ Extensions for Concepts Technical Specification, ISO 19217 (2015), but didn't make it into the standard, can additionally be enabled by -@option{-fconcepts-ts}. +@option{-fconcepts-ts}. The option @option{-fconcepts-ts} was deprecated +in GCC 14 and may be removed in GCC 15; users are expected to convert +their code to C++20 concepts. @opindex fconstexpr-depth @item -fconstexpr-depth=@var{n}