g++-3.4 bug
Richard Guenther
rguenther at suse.de
Mon Feb 20 10:46:01 CET 2012
On Thu, 16 Feb 2012, Marc Glisse wrote:
> Hello,
>
> some tests currently fail on gmpxx with g++-3.4 (on shell). This is due to a
> bug in g++-3.4, which for l=2 says the following is true:
> __builtin_constant_p(l) && (l == 0)
> it is interesting to insert a printf statement that prints both l and l==0 and
> have it print 2 and true :-/
Not for me.
int main () { int l = 2; if (__builtin_constant_p (l) && (l == 0)) return
1; return 0; }
Richard.
More information about the gmp-devel
mailing list