This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13687] -Wmissing-prototypes should not be ignored for C++
- From: "t dot schutter at att dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2004 23:21:01 -0000
- Subject: [Bug c++/13687] -Wmissing-prototypes should not be ignored for C++
- References: <20040114222156.13687.t.schutter@att.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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