This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ PATCH for c++/79176 (ICE with LTO and lambda)


vague_linkage_p has been assuming that anything with !TREE_PUBLIC is
internal, and so does not have vague linkage.  That isn't true for
decloned constructors: the decloned variant which is called by the
complete and base variants is !TREE_PUBLIC because it's local to the
comdat group, but it still has vague linkage.  This patch handles this
by checking one of the "clones" (actually thunks) for the real
linkage.

Tested x86_64-pc-linux-gnu, applying to trunk.

Attachment: 79176.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]