https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110432
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-06-27 Status|UNCONFIRMED |NEW Keywords| |ABI CC| |ppalka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Sascha Scandella from comment #0) > This leads to a segmentation fault with a simple sample application when > using clang-16 in combination with stdlibc++. It's libstdc++ > Would it be possible to change the #if statement such that it would also > work on macOS when using clang in combination with the stdlibc++? Still libstdc++ ;-) > #if !__has_attribute(__init_priority__) > static ios_base::Init __ioinit; > #elif defined(_GLIBCXX_SYMVER_GNU) > __extension__ __asm (".globl _ZSt21ios_base_library_initv"); > #endif Patrick, we talked about this and IIRC your suggestion was to move the __has_attribute check into configure, so that it depends on GCC, not on whichever compiler happens to include <iostream> later.