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

pinskia@physics.uc.edu gcc-bugzilla@gcc.gnu.org
Sat May 24 14:40:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-05-24 14:08:34
               date|                            |


------- Additional Comments From pinskia@physics.uc.edu  2003-05-24 14:08 -------
confirmed on mainline (20030524).
Should there be a warning on comparing a char* to string constant, suggesting strcmp?



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list