rfg@PARIS.ICS.UCI.EDU (02/10/90)
/* gcc 1.36.93 & g++ 1.36.4 bug 900209_02
Both gcc and g++ reject the following code with the error messages
shown below. I believe that the errors are uncalled for. I believe
that this code is perfectly legal ANSI C.
This example was hacked down from a much larger program.
I consider this a serious problem because this type of code may be generated
automatically from Cfront 2.0. Thus, this may be a difficult problem to
work around, since I do not have direct control over the output generated
by Cfront.
*/
typedef struct hash_table_entry_struct hash_table [512];
struct hash_table_entry_struct {
char *foobar;
};
static hash_table pathname_primary ;
/*
gcc version 1.36.93
/cy/ua/rfg/gnu/lib/gcc-cpp -v -undef -D__GNUC__ -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ pro.c /usr/tmp/cca26424.cpp
GNU CPP version 1.36.93
/cy/ua/rfg/gnu/lib/gcc-cc1 /usr/tmp/cca26424.cpp -quiet -dumpbase pro.c -version -o /usr/tmp/cca26424.s
GNU C version 1.36.93 (sparc) compiled by GNU C version 1.36.93.
default target switches: -mfpu -mepilogue
pro.c:8: storage size of `pathname_primary' isn't known
pro.c:8: storage size of static var `pathname_primary' isn't known
*/