https://sourceware.org/bugzilla/show_bug.cgi?id=28682
Bug ID: 28682 Summary: GCC can no longer catch EH on windows Product: binutils Version: 2.38 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: euloanty at live dot com Target Milestone: --- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103657 #include<cstdio> int main() try { throw 0; } catch(...) { puts("Hello EH\n"); return 1; } GCC cannot catch EH on windows anymore. while clang with -fuse-ld=lld and g++ -m32 all work D:\hg\fast_io\tests\0017.error>g++ -o error error.cc -Ofast -std=c++2b -s -march=native -I../../include -lntdll -fuse-ld=lld D:\hg\fast_io\tests\0017.error>error errc:no_such_file_or_directory clang++ -o error error.cc -Ofast -std=c++2b -s -march=native -I../../include -lntdll D:\hg\fast_io\tests\0017.error>error Looks like it is GNU ld linker's issue. Need to report there probably. while switch linker to lld it works. It looks like an issue in the ld linker I think. Cannot catch EH is serious tbh. Please fix it asap. -- You are receiving this mail because: You are on the CC list for the bug.