2004-07-04 Mark Mitchell * method.c (implicitly_declare_fn): Set linkage of generated functions. Index: method.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/cp/method.c,v retrieving revision 1.292 diff -c -5 -p -r1.292 method.c *** method.c 2 Jul 2004 01:15:42 -0000 1.292 --- method.c 4 Jul 2004 19:40:40 -0000 *************** implicitly_declare_fn (special_function_ *** 1016,1025 **** --- 1016,1026 ---- } grokclassfn (type, fn, kind == sfk_destructor ? DTOR_FLAG : NO_SPECIAL, TYPE_UNQUALIFIED); grok_special_member_properties (fn); + TREE_PUBLIC (fn) = !decl_function_context (TYPE_MAIN_DECL (type)); cp_finish_decl (fn, /*init=*/NULL_TREE, /*asmspec_tree=*/NULL_TREE, /*flags=*/LOOKUP_ONLYCONVERTING); DECL_IN_AGGR_P (fn) = 1; DECL_ARTIFICIAL (fn) = 1; DECL_NOT_REALLY_EXTERN (fn) = 1;