This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 2.95 error on i386-pc-solaris2.5.1
- To: Andreas Stolcke <stolcke at speech dot sri dot com>
- Subject: Re: gcc 2.95 error on i386-pc-solaris2.5.1
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 03 Aug 1999 09:44:42 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <199908021804.LAA10443@zap.speech.sri.com>
On Aug 2, 1999, Andreas Stolcke <stolcke@speech.sri.com> wrote:
> /home/srilm/devel/include/SArray.cc:356: Internal compiler error in `dwarfout_finish', at dwarfout.c:6098
> Please submit a full bug report.
> The error goes away if -g is omitted .
Thanks for your bug report. This is a generic -gdwarf problem. I
managed to simplify your bug report to the following testcase, that
I'm installing in the testsuite so that someone else can work on it.
// Build don't link:
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// based on bug report by Andreas Stolcke <stolcke@speech.sri.com>
// Special g++ Options: -gdwarf
// crash test - XFAIL *-*-*
template <class T = void> struct foo {
int data[1];
};
template <class T = void> struct bar {
bar(foo<> *);
};
template <class T> bar<T>::bar(foo<> *x) {
*x;
}
void baz() {
foo<> *baz;
bar<> baar(baz);
}
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them