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: Is This Really A Parse Error?


>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:

    Alexandre> On Jul 21, 1999, Tom Larsen <tomar@eai.com> wrote:

    >> static Hasher<V,K> hash(V(),K(),this); // error.

    Alexandre> As Jason wrote, this is a bug in the compiler.  A
    Alexandre> simpler work around that usually works is to enclose
    Alexandre> the first argument within parentheses:

A hack that always seems to work is to do:

  C((0, D()))

instead of:

  C(D())

The meaning is always the same, but the `0' allows g++ to decide an
expression is coming.

I expect this bug to be fixed by the early part of the year 2000, at
the latest, if all goes according to plan.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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