On Wed, Jan 31, 2024 at 12:19 AM Marek Polacek <pola...@redhat.com> wrote: > > 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.
What does "deprecated in GCC 15" mean? Given you output the notice with GCC 14 it would be better to state when it's going to be removed - it's effectively "deprecated" right now then? Or will it continue to "work" forever until it bitrots? > 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 >