Created attachment 313061 [details] sys-devel/clang-3.1 build failure Clang is unable to compile itself because it cannot find the C++ includes on Linux. This also affect Gentoo FreeBSD.
Created attachment 313067 [details, diff] Proposed path to fix this. I originally identified this when working on the patch in bug #417541 for the regression cased by the removal of USE=system-cxx-headers on Gentoo FreeBSD. Since the solution was to copy code being used by Clang on Linux and the fix was made to that code, this patch duplicates the fix for the original Linux code.
Patch committed to CVS as part of sys-devel/clang-3.1-r1.