This is the mail archive of the gcc@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: reference template parameters


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


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