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:44:50 +0000 (UTC)
- Subject: Re: [PING] PR c/7776: Warn about if ("abc" < "xyz") ... (take 2)
- References: <Pine.LNX.4.44.0512041211220.22234-100000@www.eyesopen.com>
On Sun, 4 Dec 2005, Roger Sayle wrote:
> On Sun, 4 Dec 2005, Joseph S. Myers wrote:
> > 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 < > <= >=.
>
> Indeed. Ok for mainline with the wording changed to "unspecified"?
OK with that change.
--
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)