------- Comment #5 from dannysmith at users dot sourceforge dot net  2006-05-22 
21:19 -------
This is a dllimport bug.  Dllimports do not have constant address.  Hence class
vtable cannot contain a method with dllimport attribute
I am working on  a patch.
Here is reduced testcase:


// dllimport_virtual.C
struct base
{
  virtual void key_method();
  __attribute__((dllimport)) virtual ~base(); // Does not have a const address
};

// Definition of key_method forces emmission of vtable
void base::key_method() {};


-- 

dannysmith at users dot sourceforge dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dannysmith at users dot
                   |                            |sourceforge dot net
         AssignedTo|unassigned at gcc dot gnu   |dannysmith at users dot
                   |dot org                     |sourceforge dot net
             Status|WAITING                     |UNCONFIRMED


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

  • [Bug c++/27650] internal compi... dannysmith at users dot sourceforge dot net

Reply via email to