Anonymous structures
Michael Vance
briareos@lokigames.com
Fri Aug 20 17:19:00 GMT 1999
Hello,
I can't tell if anonymous structures have been incorporated into
mainline gcc-2.9.5.1. The nasty little snippet I'm trying to compile
is:
struct r {
union {
int k;
struct {
void* t;
struct {
unsigned a1 : 1; // 1
unsigned a2 : 1; // 2
unsigned a3 : 1; // 3
unsigned tt : 1; // 4
unsigned mt : 1; // 5
unsigned wf : 1; // 6
unsigned nz : 1; // 7
unsigned nzw : 1; // 8
unsigned nf : 1; // 9
unsigned ac : 1; // 10
unsigned mp : 3; // 13
unsigned euva : 2; // 15
unsigned s : 1; // 16
unsigned lru : 15; // 31
};
};
};
r( ) {
k = 0;
}
};
int main( int argc, char* argv[] )
{
return 0;
}
I have a patch against egcs-1.1.1 that allows anonymous structures,
but it is a reject now, given some code changes in gcc/cp/class.c:3538
or so.
I've read through the mailing archives a discussion between some
fellows from Cygnus and Codesourcery, but couldn't quite follow the
discussion (they seemed to be looking at gcc/cp/decl.c in their talk),
so would appreciate some sort of idea of whether this feature is in,
not in, never going to be in, coming down the pipe, etc.
Many thanks,
m.
--
"How wonderful! How mysterious Programmer
I carry wood! I draw water!" Loki Entertainment Software
- Anonymous Tao poet
More information about the Gcc-bugs
mailing list