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]

[Bug c++/20584] inline function used but never defined


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-22 02:48 -------
gcc (GCC) 4.0.0 20050314 (Red Hat 4.0.0-0.34)

I don't think this is bogus, given the following code (since you did not give the preprocessed source I 
have to guess):
struct wxStaticTextBase
{
  wxStaticTextBase(){}
  virtual bool AcceptsFocus() const{return false;}
  inline virtual ~wxStaticTextBase();
};

See how ~wxStaticTextBase is declared as inline but not defined anywhere, so we get an error.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  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    |i686-pc-linux-gnu
                   |(Red Hat 4.0.0-0.34)        |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20584


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