Gela / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

TR1 tuple from at least gcc-4.2.4 fails with -fno-rtti #248

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since googletest already has the GTEST_HAS_RTTI flag, it'd be nice to 
automatically set GTEST_HAS_TR1_TUPLE to 0 when __GNUC__ && !GTEST_HAS_RTTI.

Original issue reported on code.google.com by jyass...@gmail.com on 23 Jan 2010 at 12:10

GoogleCodeExporter commented 9 years ago
I have gcc 4.2.4 on my machine, and I can build/run all gtest's tests, including
gtest_no_rtti_unittest, which compiles gtest using -fno-rtti 
-DGTEST_HAS_RTTI=0.  Can
you provide more information?  Thanks.

Original comment by w...@google.com on 23 Jan 2010 at 12:24

GoogleCodeExporter commented 9 years ago
Oops, I think you've already fixed this. 
http://code.google.com/p/googletest/source/browse/trunk/include/gtest/internal/g
test-
port.h now defines _TR1_FUNCTIONAL to avoid this problem. LLVM's on googletest 
1.2.1 
still, so we don't have the fix yet. Sorry for the noise.

Original comment by jyass...@gmail.com on 23 Jan 2010 at 12:31

GoogleCodeExporter commented 9 years ago
Cool.  Closing...

Original comment by w...@google.com on 23 Jan 2010 at 12:33