[Bug c++/12570] G++ fails to accept a legal struct declaration in a namespace

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Fri Oct 10 16:51:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12570



------- Additional Comments From gdr at integrable-solutions dot net  2003-10-10 16:51 -------
Subject: Re:  G++ fails to accept a legal struct declaration in a namespace

"wirawan0 at softhome dot net" <gcc-bugzilla@gcc.gnu.org> writes:

| TEMPORARY WORK-AROUND:
| 
| change the one line
| 
|   typedef struct {real r,i;} complex;
| 
| to two lines:
|   struct complex { real r,i; }
--------------------------------^                               
|   typedef struct complex complex;

Did you really mean that?  There is a missing semicolon.

-- Gaby



More information about the Gcc-bugs mailing list