This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
GCC 2.95.1 19990816 (release) internal compiler error under Solaris 2.6
- To: gcc-bugs at gcc dot gnu dot org
- Subject: GCC 2.95.1 19990816 (release) internal compiler error under Solaris 2.6
- From: Richard Kelly <richard dot m dot kelly at jpl dot nasa dot gov>
- Date: Tue, 31 Aug 1999 15:05:16 -0700
- Organization: Jet Propulsion Laboratory
Under Solaris 2.6, this command:
gcc -v --save-temps -c -ggdb foo.cpp
produces this error message:
foo.cpp:19: Internal compiler error in `add_bound_info',
at dwarf2out.c:7376
> schween 292: uname -a
> SunOS schween 5.6 Generic_105181-14 sun4u sparc SUNW,Ultra-60
> schween 293: gcc -v
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/specs
> gcc version 2.95.1 19990816 (release)
I have attached complete gcc output and the foo.ii file. FYI, class Foo
must be a template class to cause the error; a regular class works fine.
Thank you,
Rick
--
Richard M Kelly richard.m.kelly@jpl.nasa.gov
[PGP fingerprint = 64 D4 E4 45 A1 24 CE 5D AE 7F 0B DC DB 51 C4 1B]
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/specs
gcc version 2.95.1 19990816 (release)
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/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 -Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -ggdb -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) foo.cpp foo.ii
GNU CPP version 2.95.1 19990816 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/qt/include
/usr/local/qt/include
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/../../../../include/g++-3
/usr/local/include
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/../../../../sparc-sun-solaris2.6/include
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/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.6/2.95.1/cc1plus foo.ii -quiet -dumpbase foo.cc -ggdb -version -o foo.s
GNU C++ version 2.95.1 19990816 (release) (sparc-sun-solaris2.6) compiled by GNU C version 2.95.1 19990816 (release).
foo.cpp:7: Internal compiler error in `add_bound_info', at dwarf2out.c:7376
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
# 1 "foo.cpp"
template < class X >
struct Foo
{
static const int LENGTH = 15;
X m_foo[LENGTH];
};
Foo<int> myFoo;