c++/8076: -Wmissing-declarations is C-only, conflicts with documentation

bangerth@dealii.org bangerth@dealii.org
Thu May 15 07:27:00 GMT 2003


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



More information about the Gcc-bugs mailing list