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: internal error: template member template


On Jul  7, 1999, Markus Werle <markus@lufmech.rwth-aachen.de> wrote:

> LoopOverTemplateFunction.2.C:17: Internal compiler error 354.

> template <int i, int j, bool b=(i<=j)> class LoopFromTo { public:
>   template<template<> class f> void Exec() { 

Thanks for your bug report.  The problem appears to be fixed in the
upcoming gcc 2.95.  It says:

LoopOverTemplateFunction.2.C: At top level:
LoopOverTemplateFunction.2.C:14: explicit specialization in non-namespace scope `LoopFromTo<i,j,b>'
LoopOverTemplateFunction.2.C:14: enclosing class templates are not explicitly specialized

Which is an awkward error message, but not an ICE.

-- 
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]