------- Comment #8 from rguenth at gcc dot gnu dot org 2010-04-03 20:12 ------- Both work with
Index: gcc/cp/semantics.c =================================================================== --- gcc/cp/semantics.c (revision 157953) +++ gcc/cp/semantics.c (working copy) @@ -3449,7 +3449,9 @@ expand_or_defer_fn_1 (tree fn) this function as needed so that finish_file will make sure to output it later. Similarly, all dllexport'd functions must be emitted; there may be callers in other DLLs. */ - if ((flag_keep_inline_functions && DECL_DECLARED_INLINE_P (fn)) + if ((flag_keep_inline_functions + && DECL_DECLARED_INLINE_P (fn) + && !DECL_REALLY_EXTERN (fn)) || lookup_attribute ("dllexport", DECL_ATTRIBUTES (fn))) mark_needed (fn); } -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2010-04-03 17:11:08 |2010-04-03 20:12:00 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43611