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 21, 1999, Tom Larsen <tomar@eai.com> wrote: > static Hasher<V,K> hash(V(),K(),this); // error. As Jason wrote, this is a bug in the compiler. A simpler work around that usually works is to enclose the first argument within parentheses: static Hasher<V,K> hash((V()),K(),this); This should be enough for g++ to tell `V()' is to be parsed as an expression, not as a declaration of an anonymous argument. -- 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] |