[cfe-dev] Does clang now emit [abi:cxx11] unconditionally when used with libstdc++?

Maria Gottschalk via cfe-dev cfe-dev at lists.llvm.org
Mon Aug 15 14:43:30 PDT 2016

> (How sure are you that Clang is using libstdc++ 4.9.2 and not a later version?)

$ clang -v
Selected GCC installation: /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2

But actually, there were abi tags already in 4.9.2, e.g.


Search for _GLIBCXX_ABI_TAG_CXX11 which is __attribute ((__abi_tag__ ("cxx11"))).

But then gcc-4.9.2 doesn't emit any, while now clang-3.9.0 does!

More information about the cfe-dev mailing list