when gcc/g++ encounters an ICE (internal compiler error), then recent versions of the compiler will print a neat stack trace before exiting.
Questions: What technology is used to implement that? GCC is written in C++, afaik some conservative revision like C++03.
In particular
GCC does not use Boost.
GCC does not use external libraries like linunwind or libexcept to all of my knowledge.
GCC does not necessarily use glibc. For example I can cross-compile GCC on linux for host mingw32, and stack traces work just fine.
So before blindly closing this question, please make sure the linked answer does not need any of these libraries.