This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Warn about bogus conditional operators
Andi Kleen <andi@firstfloor.org> writes:
> I admit the terminology is something I made up.
> Perhaps there's a better term for this in the standard?
Just remove "computed". The point is that it is an expression of
boolean type, not of any other scalar type. Actually the standard does
not make that distinction, since the result type of the logical
operators is still int, not _Bool.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."