Re: Local type inference with auto is in C2X

2022-11-04 Thread David Brown via Gcc
On 03/11/2022 16:19, Michael Matz via Gcc wrote: Hello, On Thu, 3 Nov 2022, Florian Weimer via Gcc wrote: will not have propagated widely once GCC 13 releases, so rejecting implicit ints in GCC 13 might be too early. GCC 14 might want to switch to C23/C24 mode by default, activating auto supp

Re: Local type inference with auto is in C2X

2022-11-03 Thread Florian Weimer via Gcc
* Joseph Myers: > On Thu, 3 Nov 2022, Florian Weimer via Gcc wrote: > >> My main worry is that both Clang and GCC still enable implicit ints by >> default. This means that auto variables have type int always, and that >> can subtly alter the meaning of programs. The only indication that this >>

Re: Local type inference with auto is in C2X

2022-11-03 Thread Joseph Myers
On Thu, 3 Nov 2022, Florian Weimer via Gcc wrote: > My main worry is that both Clang and GCC still enable implicit ints by > default. This means that auto variables have type int always, and that > can subtly alter the meaning of programs. The only indication that this > has happened in a code b

Re: Local type inference with auto is in C2X

2022-11-03 Thread Michael Matz via Gcc
Hello, On Thu, 3 Nov 2022, Florian Weimer via Gcc wrote: > will not have propagated widely once GCC 13 releases, so rejecting > implicit ints in GCC 13 might be too early. GCC 14 might want to switch > to C23/C24 mode by default, activating auto support, if the standard > comes out in 2023 (whic