This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
anonymous structures
- To: bug-gcc at gnu dot org
- Subject: anonymous structures
- From: lacix at arh dot tki dot hu
- Date: Thu, 20 Jan 2000 19:48:51 +0100
- Organization: AR Hungary
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