This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is This Really A Parse Error?
- To: oliva at dcc dot unicamp dot br
- Subject: Re: Is This Really A Parse Error?
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 22 Jul 1999 14:43:17 -0700
- Cc: tomar at eai dot com, gcc at egcs dot cygnus dot com
- Organization: CodeSourcery, LLC
- References: <37963160.26B10BCE@eai.com><or673cs792.fsf@cupuacu.lsd.dcc.unicamp.br>
>>>>> "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