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++/13687] -Wmissing-prototypes should not be ignored for C++


------- Additional Comments From t dot schutter at att dot net  2004-01-14 23:21 -------
Note that C++ is not calling the function bar, but rather Java is.  Java emits a
header file that contains a prototype.  The programmer writes the matching .c or
.cc file.  If the programmer screws up the function name in the .c file, he gets
a compile-time warning.  If the programmer screws up the function name in the
.cc file, he gets no warning.  When he creates the .so file, he gets no warning.
 When he runs the program, he gets a run-time error.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |normal


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


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