[Bug sanitizer/98165] Use of the UB sanitizer links the the program with libstdc++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98165 Bruno Haible changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Bruno Haible --- Thank you. The option '-static-libubsan' indeed has the effect I was looking for.
[Bug sanitizer/98165] Use of the UB sanitizer links the the program with libstdc++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98165 --- Comment #2 from Jakub Jelinek --- You can use -static-libubsan option to achieve the same effect as clang does, LLVM doesn't think linking dynamically is a good idea.
[Bug sanitizer/98165] Use of the UB sanitizer links the the program with libstdc++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98165 --- Comment #1 from Bruno Haible --- Created attachment 49691 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49691&action=edit Test case