[PING] PR c/7776: Warn about if ("abc" < "xyz") ... (take 2)

Roger Sayle roger@eyesopen.com
Sun Dec 4 19:40:00 GMT 2005


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"?
Or perhaps we should switch to wording not encumbered by the various
standards documents, such as "result in arbitrary behavior"?

p.s. Many thanks for your efforts resolving CONVERT_EXPR vs. NOP_EXPR
differences in the C front-end.

Roger
--



More information about the Gcc-patches mailing list