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