On Wed, 19 Oct 2022, Jakub Jelinek wrote:

> Hi!
> 
> On Wed, Oct 19, 2022 at 02:57:59PM +0000, Joseph Myers wrote:
> > I think the type checked for e5a should be conditional on __LONG_MAX__ > 
> > __INT_MAX__; everything else there should be OK regardless.
> 
> So like this?
> Tested on x86_64-linux with -m32 and -m64, ok for trunk?
> 
> 2022-10-19  Jakub Jelinek  <ja...@redhat.com>
> 
>       PR c/107311
>       * gcc.dg/c2x-enum-1.c (enum e5): Expect e5a type inside of
>       enum to be int rather than long if long isn't wider than int.

OK.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to