Homec4science

Change a few visibilities to work around a bug in g++ 3.4.2.

Description

Change a few visibilities to work around a bug in g++ 3.4.2.

It looks like this version of g++ is confused by the local class generated
by the TEST_F macro and it can't tell that we're in a method that inherits
the class we want to access.

This bug causes the following kind of error:
../samples/../test/gtest_unittest.cc: In static member function `static void
<unnamed>::ExpectFatalFailureTest_CatchesFatalFaliure_Test::TestBody()::GTestExpectFatalFailureHelper::Execute()':
../samples/../test/gtest_unittest.cc:799: error: `static void
<unnamed>::ScopedFakeTestPartResultReporterTest::AddFailure(<unnamed>::ScopedFakeTestPartResultReporterTest::FailureMode)'
is protected
../samples/../test/gtest_unittest.cc:883: error: within this context

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>

Details

Committed
tsunanet <tsunanet@861a406c-534a-0410-8894-cb66d6ee9925>May 18 2009, 22:53
Pushed
trottetDec 4 2019, 13:52
Parents
R9484:c8a0482c0bff: Fixes the broken gtest_break_on_failure_unittest.py.
Branches
Unknown
Tags
Unknown

Event Timeline

tsunanet <tsunanet@861a406c-534a-0410-8894-cb66d6ee9925> committed R9484:8de91f8f8374: Change a few visibilities to work around a bug in g++ 3.4.2. (authored by tsunanet <tsunanet@861a406c-534a-0410-8894-cb66d6ee9925>).May 18 2009, 22:53