clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -Wno-unused-function -Wno-uninitialized -c -O3 -DGTEST_HAS_PTHREAD=0 -I lib/gtest_1.6.0/include -I lib/gtest_1.6.0 lib/gtest_1.6.0/src/gtest-all.cc -o test/gtest.o
In file included from lib/gtest_1.6.0/src/gtest-all.cc:42:
In file included from lib/gtest_1.6.0/src/gtest.cc:132:
lib/gtest_1.6.0/src/gtest-internal-inl.h:206:8: warning: private field 'pretty_' is not used [-Wunused-private-field]
bool pretty_;
^
fatal error: error in backend: Cannot select: 0x508a070: i64 = fabs 0x5074840 [ORD=532] [ID=31]
0x5074840: i64 = zero_extend 0x5074940 [ID=30]
0x5074940: i8 = X86ISD::SETCC 0x5089970, 0x541b400:1 [ID=28]
0x5089970: i8 = Constant<9> [ID=15]
0x541b400: i64,i32 = X86ISD::SUB 0x541b000, 0x5074b40 [ID=26]
0x541b000: i64 = add 0x541b200, 0x5363500 [ORD=528] [ID=24]
0x541b200: i64,ch = load 0x541b100, 0x5363700, 0x541a800<LD8[%149](tbaa=!"any pointer")> [ORD=527] [ID=22]
0x5363700: i64 = FrameIndex<7> [ORD=522] [ID=1]
0x541a800: i64 = undef [ORD=526] [ID=7]
0x5363500: i64 = Constant<-24> [ORD=528] [ID=10]
0x5074b40: i64 = X86ISD::Wrapper 0x5089670 [ID=19]
0x5089670: i64 = TargetGlobalAddress<[0 x i64]* @_ZNSs4_Rep20_S_empty_rep_storageE> 0 [ID=16]
In function: _ZN7testing8UnitTest17AddTestPartResultENS_14TestPartResult4TypeEPKciRKNS_8internal6StringES8_
make: *** [test/gtest.o] Error 1
clang++ still works OK on our macs. But it could
easily work differently under linux. I believe what
is happening is that some of the old c lib functions
get automatically brought into global scope on some
platforms. We're not explicitly qualifying them so as
to use argument-dependent lookup where we need to for
our auto-diff vars.
In function: _ZN7testing8UnitTest17AddTestPartResultENS_14TestPartResult4TypeEPKciRKNS_8internal6StringES8_