Thread View: gnu.g++.bug
1 messages
1 total messages
Started by David.Detlefs
Mon, 07 Aug 1989 19:54
Unnamed bit-field causes a problem.
Author: David.Detlefs
Date: Mon, 07 Aug 1989 19:54
Date: Mon, 07 Aug 1989 19:54
23 lines
1046 bytes
1046 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads