[Bug middle-end/7776] const char* p = "foo"; if (p == "foo") ... is compiled without warning!

roger at eyesopen dot com gcc-bugzilla@gcc.gnu.org
Sun Jun 19 01:49:00 GMT 2005


------- Additional Comments From roger at eyesopen dot com  2005-06-19 01:49 -------
A revised patch, allowing equality and inequality comparisons against NULL, yet
retaining warnings for things like 'if ("foo" > 0)' and 'if ("foo" == "bar")'
was posted here:  http://gcc.gnu.org/ml/gcc-patches/2005-06/msg01177.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7776



More information about the Gcc-bugs mailing list