🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #846

bug in g++ 2.2.2

#846
From: Marvin Solomon
Date: Thu, 20 Aug 1992 07:59
25 lines
1959 bytes
The following program reports a syntax error.  The exmaple from which this
was distilled used <sys/stat.h> which declares both a structure and a
function named "stat".
	struct	s { int a; };
	extern int       s () ;
	int f() {
		::s();
		return 0;
	}

By the way, is any body reading these bug reports?  I've sent in several
over that last couple of week and have received not so much as an
acknowlegement.  I realize that I shouldn't expect much service for the
prices I'm paying :-), but it would be nice to at least get an ack.
Otherwise, what's the point of preparing reports?

Reading specs from /usr/gnu/lib/gcc-lib/decstation/2.2.2/specs
gcc version 2.2.2
 /usr/gnu/lib/gcc-lib/decstation/2.2.2/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__ANSI_COMPAT -DMIPSEL -DR3000 -DSYSTYPE_BSD -D_SYSTYPE_BSD -Dbsd4_2 -Dhost_mips -Dmips -Dultrix -Dunix -D__ANSI_COMPAT -D__MIPSEL__ -D__R3000__ -D__SYSTYPE_BSD__ -D___SYSTYPE_BSD__ -D__bsd4_2__ -D__host_mips__ -D__mips__ -D__ultrix__ -D__unix__ -D__ANSI_COMPAT -D__MIPSEL -D__R3000 -D__SYSTYPE_BSD -D___SYSTYPE_BSD -D__bsd4_2 -D__host_mips -D__mips -D__ultrix -D__unix -D__LANGUAGE_C__ -D__LANGUAGE_C -DLA
NGUAGE_C foo1.c /usr/tmp/cca06298.i
GNU CPP version 2.2.2 [AL 1.1, MM 19] DECstation running ultrix
 /usr/gnu/lib/gcc-lib/decstation/2.2.2/cc1plus /usr/tmp/cca06298.i -quiet -dumpbase foo1.cc -version -o /usr/tmp/cca06298.s
GNU C++ version 2.2.2 [AL 1.1, MM 19] DECstation running ultrix compiled by GNU C version 2.2.2.
foo1.c: In function `int  f ()':
foo1.c:4: parse error before `;'
Technical Details
Message-ID: <9208201759.AA06309@gjetost.cs.wisc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.wisc.edu!solomon

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.wisc.edu!solomon
From: solomon@cs.wisc.edu (Marvin Solomon)
Subject: bug in g++ 2.2.2
Message-ID: <9208201759.AA06309@gjetost.cs.wisc.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 20 Aug 1992 07:59:37 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 25