This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: reference template parameters
- To: Andrey Slepuhin <pooh at msu dot ru>
- Subject: Re: reference template parameters
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 13 Jul 1999 14:52:42 -0300
- Cc: egcs at egcs dot cygnus dot com
- References: <XFMail.990713214433.pooh@msu.ru>
On Jul 13, 1999, Andrey Slepuhin <pooh@msu.ru> wrote:
> But well, in case of
> int a=1;
> test1.cc:7: non-constant `a' cannot be used as template argument
> test1.cc:7: warning: ANSI C++ forbids declaration `x' with no type
Yup, I meant to write only the upcoming gcc 2.95 accepts it.
> test1.cc:11: could not convert template argument `s' to `S &'
> test1.cc:11: warning: ANSI C++ forbids declaration `x' with no type
Fixed in 2.95 too.
--
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