This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: bug rep
- To: Stefan Wetzel <Stefan_Wetzel at Physik dot TU-Muenchen dot DE>
- Subject: Re: bug rep
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 01 Jul 1999 19:43:49 -0300
- Cc: egcs-bugs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
- References: <Pine.OSF.3.95.990629132957.644A-101000@lorentz.t30.physik.tu-muenchen.de>
On Jun 29, 1999, Stefan Wetzel <Stefan_Wetzel@Physik.TU-Muenchen.DE> wrote:
> In file included from testinvers.cc:1:
> MatrInvCl.h:16: Internal compiler error.
> MatrInvCl.h:16: Please submit a full bug report to `egcs-bugs@cygnus.com'.
Thanks for your bug report. The upcoming gcc 2.95 will tell you that
`dim' is not declared at that point (you can't refer to an argument of
a function as an array index), but will still crash later on, so I'm
installing the following testcase in the testsuite:
// Build don't link:
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// based on bug report by Stefan Wetzel <Stefan_Wetzel@Physik.TU-Muenchen.DE>
// crash test - XFAIL *-*-*
template<int P = 0> struct foo {
static void bar(double (*)[dim]) {} // ERROR - dim not declared
};
void bar() {
foo<>::bar(0); // ERROR - instantiated from here
}
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists