[Bug c++/17511] New: non-local variable vs anonymous type error
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Wed Sep 15 20:56:00 GMT 2004
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
More information about the Gcc-bugs
mailing list