[gnu.g++.bug] Unnamed bit-field causes a problem.

David.Detlefs@F.GP.CS.CMU.EDU (08/08/89)

Using G++ 1.35 on the following file:

--------------------------------------------------
typedef	unsigned int	msg_size_t;

typedef struct {
	unsigned int	:24,
	msg_simple : 8;
}
msg_header_t;
--------------------------------------------------

Produces the following message:

bug.c:6: storage class specified for structure field `msg_simple'

I believe this code is correct; it does not produce any error message
in AT&T cfront 1.2.1.  I find this to be a strange bug, because it has
a fairly complicated minimal example: if I remove any significant part
of the above file, G++ compiles it without complaint.  Sorry I can't
be more helpful.

Dave