c++/3536

Nilsson, Thomas thomas.nilsson@streamserve.com
Tue Sep 4 10:14:00 GMT 2001


http://gcc.gnu.org/cgi-bin/gnatsweb

Hello,

The thunks were actually generated and found in the object files but they
were not public so linking failed. Adding the three lower lines to the
function make_thunk() in /gcc/cp/method.c seems solve problem 3536.

Line 361:

      /* And neither is it a clone.  */
      DECL_CLONED_FUNCTION (thunk) = NULL_TREE;
      DECL_EXTERNAL (thunk) = 1;

+     /* Make the thunk public unless it is for a destructor */
+     if (!DECL_DESTRUCTOR_P (func_decl))
+      TREE_PUBLIC (thunk) = 1;


Regards,
Thomas



More information about the Gcc-bugs mailing list