This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70733] Wrong code with nested structs and bit field.
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Apr 2016 21:12:22 +0000
- Subject: [Bug c++/70733] Wrong code with nested structs and bit field.
- Auto-submitted: auto-generated
- References: <bug-70733-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70733
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
This bug report is for C++, where bit-field width is explicitly not part
of the type and bit-field types wider than int are not extensions, not for
C, where there is a line of C90 DRs treating the width as part of the type
and things that are not defined at all if it is not part of the type.
The C++ front end should already convert bit-fields to their declared
types when needed (convert_bitfield_to_declared_type). So I don't agree
with the stated rationale for closure.