On Thu, Sep 3, 2026 at 4:09 AM Kael Andrew Alonzo Franco
<[email protected]> wrote:
>
> GCC requires C++14 and C++ supports enum bitfield so ENUM_BITFIELD is 
> deprecated macro.
>
> Bootstrapped and regtested on x86_64-pc-linux-gnu.
>
>         PR middle-end/125507
>
> gcc/d/ChangeLog:
>
>         * d-tree.h (struct binding_level): Remove ENUM_BITFIELD.

If you have not pushed this, this is ok.

>
> Signed-off-by: Kael Andrew Franco <[email protected]>
> ---
>  gcc/d/d-tree.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/d/d-tree.h b/gcc/d/d-tree.h
> index 905eab9239f..c28ecf82808 100644
> --- a/gcc/d/d-tree.h
> +++ b/gcc/d/d-tree.h
> @@ -128,7 +128,7 @@ struct GTY((chain_next ("%h.level_chain"))) binding_level
>    binding_level *level_chain;
>
>    /* The kind of scope this object represents.  */
> -  ENUM_BITFIELD (level_kind) kind : 4;
> +  enum level_kind kind : 4;
>  };
>
>  /* The binding level currently in effect.  */
> --
> 2.55.0
>

Reply via email to