Article View: gnu.g++.bug
Article #1308Please help
From: A. Joseph Rajkumar
Date: Mon, 04 Jan 1993 15:41
Date: Mon, 04 Jan 1993 15:41
45 lines
2671 bytes
2671 bytes
% cat test.cc
//
// test - just test some things
//
#include <iostream.h>
main(int c, char **v) {
cout << "Good bye, world\n";
throw "up";
}
Hi
I ran the above program and the report I get is this:-
rajkumar@rajkumar[402]:g++ -v -fansi-exceptions -c test.cc
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/specs
gcc version 2.3.3
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix test.cc /usr/tmp/cca15275.i
GNU CPP version 2.3.3 (sparc)
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cc1plus /usr/tmp/cca15275.i -quiet -dumpbase test.cc -version -fansi-exceptions -o /usr/tmp/cca15275.s
GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
In file included from test.cc:5:
/usr/local/lib/g++-include/iostream.h:27: parse error before `('
/usr/local/lib/g++-include/iostream.h:27: `ios' undeclared, outside of functions
/usr/local/lib/g++-include/iostream.h:27: parse error before `)'
/usr/local/lib/g++-include/iostream.h:27: warning: data definition has no type or storage class
/usr/local/lib/g++-include/iostream.h:37: `ios' fails to be an aggregate typedef
/usr/local/lib/g++-include/iostream.h:59: `streampos' undeclared, outside of functions
/usr/local/lib/g++-include/iostream.h:60: `streamoff' undeclared, outside of functions
/usr/local/lib/g++-include/iostream.h:60: `_seek_dir' undeclared, outside of functions
/usr/local/lib/g++-include/iostream.h:60: `class ostream& ostream::seekp (...)' is already defined in the class ostream
/usr/local/lib/g++-include/iostream.h:61: syntax error before `('
/usr/local/lib/g++-include/iostream.h:63: warning: type specifier omitted for parameter
/usr/local/lib/g++-include/iostream.h:63: parse error before `)'
/usr/local/lib/g++-include/iostream.h:91: parse error before `)'
/usr/local/lib/g++-include/iostream.h: In method `ostream::ostream ()':
/usr/local/lib/g++-include/iostream.h:41: Internal compiler error.
/usr/local/lib/g++-include/iostream.h:41: Please report this to `bug-g++@prep.ai.mit.edu'.
Could you please let me know what I am doing wrong here.
Thanks
Joseph Rajkumar
Technical Details
Message-ID:
<9301041541.AA15317@rajkumar.worldbank.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!rajkumar.worldbank.org!rajkumarShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!rajkumar.worldbank.org!rajkumar From: rajkumar@rajkumar.worldbank.org (A. Joseph Rajkumar) Subject: Please help Message-ID: <9301041541.AA15317@rajkumar.worldbank.org> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Mon, 4 Jan 1993 15:41:18 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 47