Re: CVS HEAD compile failure - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CVS HEAD compile failure
Date
Msg-id 21821.1070908055@sss.pgh.pa.us
Whole thread Raw
In response to Re: CVS HEAD compile failure  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: CVS HEAD compile failure
Re: CVS HEAD compile failure
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> I've been able to reproduce this on one of my machines, and it's nasty.

> In that case I'm confused about why this code compiles on my machine:

What compiler are you using?  I'm using gcc 2.95.3 (on the machine that
shows the failure), and I think Bruce is also using something less than
the latest.  It's possible that more recent gcc's are able to figure out
that the reference to free_func should be interpreted as a parameter
name and not a typedef.

In fact, trying your test program fails here:

$ gcc -Wall zzz.c
zzz.c:8: parse error before `free_func'
zzz.c:8: parse error before `)'
$ 

so "compiler difference" definitely seems to be the answer.
        regards, tom lane


pgsql-hackers by date:

Previous
From: ohp@pyrenet.fr
Date:
Subject: 73.5 and uw 713
Next
From: Tom Lane
Date:
Subject: Re: aggregate + view + alias crash on 7.4 stable