This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64875] -Winline does not report C++ methods
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 31 Jan 2015 02:25:52 +0000
- Subject: [Bug c++/64875] -Winline does not report C++ methods
- Auto-submitted: auto-generated
- References: <bug-64875-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64875
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I don't think this warning is very relevant to C++.
In C++ 'inline' is more useful for telling the compiler that the function may
be defined in mutiple translation units, and that is typically more important
than whether it is actually inlined or not.