https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115049

--- Comment #13 from LIU Hao <lh_mouse at 126 dot com> ---
(In reply to LIU Hao from comment #12)
> Created attachment 58662 [details]
> test patch

This fixes the issue for me on x86_64-w64-mingw32.

Note this is actually not target-specific; all targets that implement COMDAT
but not as weak symbols are affected. `decl_binds_to_current_def_p` already
contains a check for weak symbols, so the issue is invisible if COMDAT is
implemented as weak symbols, for example on Linux.

Reply via email to