On Mon, Nov 3, 2025 at 4:26 AM Thomas Schwinge <[email protected]> wrote:
>
> Fix-up for commit r16-4914-ga3ee90fd3dc5d5c98f63a16f9cdd788c5d5c3335
> "ipa: Fix pritting of symtab_node type [PR122512]":
>
>     ../../source-gcc/gcc/symtab.cc:885:61: error: expected ‘,’ before ‘)’ 
> token
>      static_assert (ARRAY_SIZE(toplevel_type_names)==TOPLEVEL_MAX);
>                                                                  ^
>     ../../source-gcc/gcc/symtab.cc:885:61: error: expected string-literal 
> before ‘)’ token
>     make[2]: *** [Makefile:1215: symtab.o] Error 1

Thanks for fixing up my accidental inclusion of C++17 code.
Looks like stage1 compiling with -std=c++14 is not enough to catch all
of them :).

Thanks,
Andrew

>
>         PR ipa/122512
>         gcc/
>         * symtab.cc: Fix 'static_assert'.
> ---
>  gcc/symtab.cc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/symtab.cc b/gcc/symtab.cc
> index fb2aca5f4f7..3dbfad33ea2 100644
> --- a/gcc/symtab.cc
> +++ b/gcc/symtab.cc
> @@ -882,7 +882,7 @@ static const char * const toplevel_type_names[] =
>   "variable",
>  };
>
> -static_assert (ARRAY_SIZE(toplevel_type_names)==TOPLEVEL_MAX);
> +static_assert (ARRAY_SIZE(toplevel_type_names) == TOPLEVEL_MAX, "");
>
>  /* Dump the visibility of the symbol.  */
>
> --
> 2.34.1
>

Reply via email to