This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
version 2.95 Solaris 2.7 bug
- To: gcc-bugs at gcc dot gnu dot org
- Subject: version 2.95 Solaris 2.7 bug
- From: Lachlan Andrew <lha at ee dot mu dot oz dot au>
- Date: Fri, 1 Oct 1999 20:05:30 +1000 (EST)
Greetings!!
The command
g++ -v --save-temps tmp.cc
with file tmp.cc
class A
{
static const int b;
int c [b];
int d;
public:
A () { }
int e () { return (d); }
};
produces the following output:
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95/specs
gcc version 2.95 19990728 (release)
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asyste
m(unix) -Asystem(svr4) -D__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) tmp.cc tmp.ii
GNU CPP version 2.95 19990728 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95/../../../../include/g++-3
/usr/local/include
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95/../../../../sparc-sun-solaris2.7/include
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95/cc1plus tmp.ii -quiet -dumpbase tmp.cc -version -o tmp.s
GNU C++ version 2.95 19990728 (release) (sparc-sun-solaris2.7) compiled by GNU C version 2.8.1.
tmp.cc: In method `int A::e()':
tmp.cc:9: Internal compiler error in `find_function_data', at function.c:542
Please submit a full bug report.
See <URL:http://egcs.cygnus.com/faq.html#bugreport> for instructions.
(I know that I haven't specified b but that doesn't help -- this is the
simplest program that produces the error.)
The .ii file is attached (FWIW...)
Hope this helps, and keep up the good work!!
Lachlan
=============================================================================
Lachlan Andrew lha@ee.mu.oz.au Phone: +613 9344-9208 Fax: +613 9344-9188
Department of Electrical and Electronic Engineering
University of Melbourne, Victoria, 3010 AUSTRALIA
=============================================================================
# 1 "tmp.cc"
class A
{
static const int b;
int c [b];
int d;
public:
A () { }
int e () { return (d); }
};