This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8076: -Wmissing-declarations is C-only, conflicts with documentation
- From: bangerth at dealii dot org
- To: austern at apple dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 15 May 2003 05:42:13 -0000
- Subject: Re: c++/8076: -Wmissing-declarations is C-only, conflicts with documentation
- Reply-to: bangerth at dealii dot org, austern at apple dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: -Wmissing-declarations is C-only, conflicts with documentation
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu May 15 05:42:13 2003
State-Changed-Why:
The C-only part has been fixed. Matt, I agree with Gaby that
the -Wmissing-declarations is not very useful, since, for
example, most of the STL is implemented in header files (using
inline functions) that have no prior declaration.
Regarding the other issue (misdeclaration): there's not
much you can do in C++, because you can overload. So if
a declaration doesn't match a definition or another
declaration for the same name, that's not an error, but
just declares a second function. There may be something
that I don't see, but I think I would prefer if we had
a separate bug report for this if you feel that there's
something missing.
Thanks
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8076