anonymous structures
lacix@arh.tki.hu
lacix@arh.tki.hu
Thu Jan 20 09:51:00 GMT 2000
I don't know how to use anonymous structures or why not work my
compiler..
Here is a simple code:
1. int main(void) {
2. struct {
3. int a;
4. int b;
5. };
6.
7. a = 23;
8. return(0);
9. };
Compiler version:
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
Message:
main.cc:In function 'int main()':
main.cc:5: warning: anonymous class type not used to declare any objects
main.cc:7: 'a' undeclared (first use this function)
Thanks
Laszlo Dancs
lacix@arh.tki.hu
More information about the Gcc-bugs
mailing list