Re: bitfield types

2017-11-15 Thread Mike Stump
On Nov 14, 2017, at 3:21 PM, Joseph Myers wrote: > > On Tue, 14 Nov 2017, Mike Stump wrote: >> The testsuite/gcc.c-torture/execute/pr34971.c seems wrong to me. The >> type of the expression x.b << 8 has size 8, a size 8 integral type is a >> 64-bit type. If the result is a 64-bit type, then i

Re: bitfield types

2017-11-14 Thread Joseph Myers
On Tue, 14 Nov 2017, Mike Stump wrote: > The testsuite/gcc.c-torture/execute/pr34971.c seems wrong to me. The > type of the expression x.b << 8 has size 8, a size 8 integral type is a > 64-bit type. If the result is a 64-bit type, then it's argument (x.b) > was a 64-bit type. In C++, we obse