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] |
On Jul 8, 1999, Andrey Slepuhin <pooh@msu.ru> wrote:
> Can anybody check whether template reference parameters work with
> gcc-2.95?
> With egcs-1.1.2 I got
> test.cc:7: could not convert template argument `d' to `Base &'
> test.cc:7: warning: ANSI C++ forbids declaration `yd' with no type
> compiling example from C++ draft, clause 14.3.6.
14.3.6 doesn't exist in the final Standard. Are you trying to use a
Derived lvalue as a Base& template parameter? The Standard does not
allow any conversions for template parameters of type reference to
object.
--
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] |