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

            Bug ID: 108918
           Summary: PR107701 breaks windows targets
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

https://github.com/gcc-mirror/gcc/commit/ec59848074ba8c4310cbadb603822bfaeff03a32

#include<iostream>

int main()
{
        std::cout<<"Hello World\n";
}

This is a simple program. As long as std::cout is used, the program crashes on
windows with DYNAMIC LINKING libstdc++. I believe it is due to the patch of GCC
here.

Although LLVM lld does not break, I do not know why gnu ld breaks. It looks
like it cannot handle the init_priority attribute properly on windows targets.


https://sourceware.org/bugzilla/show_bug.cgi?id=29973

Reply via email to