------- Comment #7 from hjl dot tools at gmail dot com 2009-12-16 17:30 ------- (In reply to comment #6) > Created an attachment (id=19322) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19322&action=view) [edit] > gcc45-pr42386.patch > > Fix for this testcase. If we already at maybe_clone_body time know that > the ctor or dtor will not be emitted in the current TU, we shouldn't create > any > same_body/same_comdat_group relations between the symbols. > The question is if for DECL_DEFER_OUTPUT we might decide later on that it is > really DECL_EXTERNAL (i.e. not clear DECL_EXTERNAL on it). > Alternatively same_comdat_group could be only considered for !DECL_EXTERNAL > decls. >
Do we need those # 1 "types.h" 1 # 15 "CodingSystem.h" 1 in testcase? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42386