This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING] PR c/7776: Warn about if ("abc" < "xyz") ... (take 2)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 4 Dec 2005 19:33:50 +0000 (UTC)
- Subject: Re: [PING] PR c/7776: Warn about if ("abc" < "xyz") ... (take 2)
- References: <Pine.LNX.4.44.0512041059430.19114-100000@www.eyesopen.com>
On Sun, 4 Dec 2005, Roger Sayle wrote:
> + even when intentional, result in undefined behavior and are not portable.
Unspecified behavior for equality comparisons (as in the example), only
undefined for < > <= >=.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)