This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13123] -Wformat doesn't detect printf() format mismatches in C++ code


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]