🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2866

gcc 1.36.93 & g++ 1.36.4 bug 900209_02

#2866
From: rfg
Date: Fri, 09 Feb 1990 22:32
36 lines
1674 bytes
/* 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

*/
Technical Details
Message-ID: <9002091432.aa26439@PARIS.ICS.UCI.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!bu.edu!bu-cs!snorkelwacker!tut.cis.ohio-state.edu!PARIS.ICS.UCI.EDU!rfg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!bu.edu!bu-cs!snorkelwacker!tut.cis.ohio-state.edu!PARIS.ICS.UCI.EDU!rfg
From: rfg@PARIS.ICS.UCI.EDU
Newsgroups: gnu.gcc.bug
Subject: gcc 1.36.93 & g++ 1.36.4 bug 900209_02
Message-ID: <9002091432.aa26439@PARIS.ICS.UCI.EDU>
Date: 9 Feb 90 22:32:18 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 36