[Bug middle-end/31541] [4.3 Regression] cannot take address of bit field
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Apr 11 20:43:00 GMT 2007
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-04-11 21:43 -------
Reduced testcase:
typedef unsigned char Uchar;
struct scsi_mode_header {
unsigned char sense_data_len : 8;
};
int f(void)
{
struct scsi_mode_header md;
return *(Uchar*)&md;
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|c |middle-end
Ever Confirmed|0 |1
GCC build triplet|i686-pc-linux-gcc |
GCC host triplet|i686-pc-linux-gcc |
GCC target triplet|i686-pc-linux-gcc |
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2007-04-11 21:43:06
date| |
Summary|cannot take address of bit |[4.3 Regression] cannot take
|field |address of bit field
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31541
More information about the Gcc-bugs
mailing list