This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bitfield types
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Mike Stump <mikestump at comcast dot net>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 14 Nov 2017 23:21:07 +0000
- Subject: Re: bitfield types
- Authentication-results: sourceware.org; auth=none
- References: <B46B8FC3-AAEF-45DE-98C3-699BD64E76C6@comcast.net>
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 observed what they meant in the C
A 64-bit type *with padding bits, not necessarily 64 value bits*.
See what I said in <https://gcc.gnu.org/ml/gcc/2017-10/msg00192.html>.
--
Joseph S. Myers
joseph@codesourcery.com