------- Comment #2 from danglin at gcc dot gnu dot org 2009-07-04 22:05 ------- Breakpoint 6, assemble_external (decl=0x7ae86f80) at ../../gcc/gcc/varasm.c:2304 2304 gcc_assert (asm_out_file); (gdb) p debug_tree (decl) <function_decl 7ae86f80 find type <method_type 7ae85f08 type <void_type 7adf74e0 void VOID align 8 symtab 0 alias set -1 canonical type 7adf74e0 pointer_to_this <pointer_type 7adf7548>> SI size <integer_cst 7ade07a0 constant 32> unit size <integer_cst 7ade0540 constant 4> align 32 symtab 0 alias set -1 canonical type 7ae85f08 method basetype <record_type 7ae85d00 A> arg-types <tree_list 7ae8c7e0 value <pointer_type 7ae85f70> chain <tree_list 7adfa1a0 value <void_type 7adf74e0 void>>> pointer_to_this <pointer_type 7ae8e3a8>> addressable used nothrow public static weak autoinline no-static-chain virtual decl_5 SI defer-output file pr40490.cc line 4 col 16 align 32 context <record_type 7ae85d00 A> initial <error_mark 7ade0500> arguments <parm_decl 7adf65a0 this type <pointer_type 7ae8e000 type <record_type 7ae85d00 A> readonly unsigned SI size <integer_cst 7ade07a0 32> unit size <integer_cst 7ade0540 4> align 32 symtab 0 alias set -1 canonical type 7ae8e000> readonly unsigned SI file pr40490.cc line 4 col 21 size <integer_cst 7ade07a0 32> unit size <integer_cst 7ade0540 4> align 32 context <function_decl 7ae86f80 find> arg-type <pointer_type 7ae8e000>> result <result_decl 7adf66e0 D.1717 type <void_type 7adf74e0 void> ignored VOID file pr40490.cc line 4 col 23 align 8 context <function_decl 7ae86f80 find>> pending-inline-info 7ae8bd90 (mem:SI (symbol_ref/v/i:SI ("@_ZN1A4findEv") [flags 0x1] <function_decl 7ae86f80 find>) [0 S4 A32])> $10 = void
DECL_EXTERNAL (decl) is 0, so the symbol is not imported. Probably, the component should be changed to c++. -- danglin at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at codesourcery dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40490