This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ECGS bug report
- To: Meenaradchagan Vishnu <mvishnu at fore dot com>
- Subject: Re: ECGS bug report
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 17 Jul 1999 09:24:52 -0300
- Cc: martin at mira dot isdn dot cs dot tu-berlin dot de, gcc-bugs at egcs dot cygnus dot com
- Cc: gcc-patches at egcs dot cygnus dot com
- References: <199907132033.WAA00666@mira.isdn.cs.tu-berlin.de>
On Jul 13, 1999, Meenaradchagan Vishnu <mvishnu@fore.com> wrote:
> The third template parameter to the priority_queue<> must be a class
> whereas I am passing a function.
In fact, the problem is that you're specializing a template class with
a template function. I'm installing the following simplified version
of your testcase in the testsuite:
// Build don't link:
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// simplified from bug report by Meenaradchagan Vishnu <mvishnu@fore.com>
// crash test - XFAIL *-*-*
template <typename> struct foo {};
template <> void foo();
--
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