This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12570] G++ fails to accept a legal struct declaration in a namespace
- From: "wirawan0 at softhome dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2003 16:32:59 -0000
- Subject: [Bug c++/12570] G++ fails to accept a legal struct declaration in a namespace
- References: <20031010155754.12570.wirawan0@softhome.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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 wirawan0 at softhome dot net 2003-10-10 16:32 -------
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;