gcc-11-20240619 is now available

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

Re: Union initialization semantics

2024-06-19 Thread Martin Uecker via Gcc
Am Mittwoch, dem 19.06.2024 um 13:59 +0100 schrieb Jonathan Wakely via Gcc: > On Wed, 19 Jun 2024 at 11:57, Alexander Monakov wrote: > > > > Hello, > > > > I vaguely remember there was a recent, maybe within last two months, > > discussion > > about semantics of union initialization where sizeo

Re: Union initialization semantics

2024-06-19 Thread Jonathan Wakely via Gcc
On Wed, 19 Jun 2024 at 11:57, Alexander Monakov wrote: > > Hello, > > I vaguely remember there was a recent, maybe within last two months, > discussion > about semantics of union initialization where sizeof(first member) is less > than > sizeof(union). The question was whether it's okay to initi

Union initialization semantics

2024-06-19 Thread Alexander Monakov
Hello, I vaguely remember there was a recent, maybe within last two months, discussion about semantics of union initialization where sizeof(first member) is less than sizeof(union). The question was whether it's okay to initialize just that first member and leave garbage bits in the other, larger,