This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20584] New: inline function used but never defined
- From: "nerijus at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Mar 2005 02:41:42 -0000
- Subject: [Bug c++/20584] New: inline function used but never defined
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When compiling wxWidgets I get a warning:
../wxWindows/include/wx/stattext.h:24: warning: inline function 'virtual
wxStaticTextBase::~wxStaticTextBase()' used but never defined
The code is:
class WXDLLEXPORT wxStaticTextBase : public wxControl
{
public:
wxStaticTextBase() { }
// overriden base virtuals
virtual bool AcceptsFocus() const { return false; }
virtual bool HasTransparentBackground() { return true; }
private:
DECLARE_NO_COPY_CLASS(wxStaticTextBase)
};
I asked wxWidgets developer and he said "The others could be less clear but this
one is clearly bogus: compiler complains about dtor which it should generate
itself. Please report this as a gcc bug".
I am using gcc 4 from Fedora devel.
--
Summary: inline function used but never defined
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nerijus at users dot sourceforge dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: gcc (GCC) 4.0.0 20050314 (Red Hat 4.0.0-0.34)
GCC host triplet: gcc (GCC) 4.0.0 20050314 (Red Hat 4.0.0-0.34)
GCC target triplet: gcc (GCC) 4.0.0 20050314 (Red Hat 4.0.0-0.34)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20584