This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17511] New: non-local variable vs anonymous type error
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2004 20:56:12 -0000
- Subject: [Bug c++/17511] New: non-local variable vs anonymous type error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Current mainline cannot compile groff-1.18.1.1 due to these constructs at file
scope:
struct {
const char *name;
} param_table[] = {
{ "fat_offset" }};
extern enum {
OUTLINE, FILL, BOTH
} polyfill;
groff_red.cc:3: error: non-local variable `<anonymous struct> param_table []'
uses anonymous type
groff_red.cc:8: error: non-local variable `<anonymous enum> polyfill' uses
anonymous type
Both 3.4.2 and Icc in strict mode have no problem.
--
Summary: non-local variable vs anonymous type error
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pcarlini at suse dot de
CC: aj at suse dot de,gcc-bugs at gcc dot gnu dot org
GCC host triplet: Any
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17511