[Bug c++/13123] -Wformat doesn't detect printf() format mismatches in C++ code
jthorn at aei dot mpg dot de
gcc-bugzilla@gcc.gnu.org
Wed Nov 19 14:06:00 GMT 2003
------- Additional Comments From jthorn at aei dot mpg dot de 2003-11-19 14:06 -------
Created an attachment (id=5171)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5171&action=view)
compiler command line, -v output, but no warning message for g++ -v
-save-temps -c -Wformat foo.cc
Compiling this source file as C++ (gcc invoked as /usr/local/bin/g++,
file name foo.cc) does *not* warn about the printf() format mismatch.
I can find nothing in the gcc documentation to say that -Wformat is
C-specific and/or should not work for C++ code, so IMHO this is a bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13123
More information about the Gcc-bugs
mailing list