This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc 2.95 error on i386-pc-solaris2.5.1


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]