This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49406] Inlining in inheritance seems broken
- 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: Tue, 14 Jun 2011 18:40:14 +0000
- Subject: [Bug c++/49406] Inlining in inheritance seems broken
- Auto-submitted: auto-generated
- References: <bug-49406-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49406
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-14 18:39:55 UTC ---
the usual way to do that is to define the inline function in a header (e.g.
Base.h would be the obvious place)
it cannot be inlined in Derived.c++ if its definition is not included in that
file