https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122019

--- Comment #6 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
(In reply to Eric Botcazou from comment #5)
> I now see a lot of failures on the gcc-15 branch:
> 
[snip]
> 
>       /* We don't want to use retrofit_lang_decl directly so that we aren't
>        affected by the language state when we load in.  */
>       if (!DECL_LANG_SPECIFIC (not_tmpl))
>       {
>         maybe_add_lang_decl_raw (not_tmpl, false);
>         gcc_checking_assert (!VAR_OR_FUNCTION_DECL_P (not_tmpl));
>         SET_DECL_LANGUAGE (not_tmpl, lang_cplusplus);
>       }
> 
> This is with a compiler configured with --enable-checking=yes.

Sorry about the breakage.  For some reason neither my trunk build tree nor my
gcc-15 build tree were showing errors (despite also being checking builds), but
a fresh tree did complain...  the fix here is to just remove this assertion
that isn't valid.

Reply via email to