This is the mail archive of the gcc-patches@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: bug rep


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

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