gcc-12-20230311 is now available

2023-03-11 Thread GCC Administrator via Gcc
Snapshot gcc-12-20230311 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20230311/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: No warning about duplicate values in enum

2023-03-11 Thread Jonathan Wakely via Gcc
On Sat, 11 Mar 2023, 12:53 Basile Starynkevitch, wrote: > Hello all, > > > Andrea observed that: > > In gcc 8.3.0, compiling > > > enum > test >{ > FIRST = 1, > SECOND = 1, > THIRD = 2 >}; > > int > main (void) > { >return 0; > } > > > generates no warning even with -We

No warning about duplicate values in enum

2023-03-11 Thread Basile Starynkevitch
Hello all, Andrea observed that: In gcc 8.3.0, compiling enum test { FIRST = 1, SECOND = 1, THIRD = 2 }; int main (void) { return 0; } generates no warning even with -Wextra. I believe that the C standard (which I don't have here, but see also https://port70.net/~nsz/c/