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]

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


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


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