Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Problem compiling tests with gcc 3.4.3

2005-11-17
2013-04-22
  • The example
        examples/hierarchy/ChessTest.h
    does not compile with GCC 3.4.3
    With thsit compiler when inheriting from a template class, its members are not directly visible from the inherited class.
    It is necessary to put complete scope.
    Here is the patch that fixes the problem.
    Would be nice to have it integrated in the next release.

    Many thanks for your help,

        Gianluca Chiozzi

    -----------------

    diff -Naur tmp_unpack/cppunit-1.10.2.orig/examples/hierarchy/ChessTest.h cppuni\ t-1.10.2/examples/hierarchy/ChessTest.h
    --- tmp_unpack/cppunit-1.10.2.orig/examples/hierarchy/ChessTest.h       2002-07\ -10 18:50:02.000000000 +0000
    +++ cppunit-1.10.2/examples/hierarchy/ChessTest.h       2005-11-17 23:15:49.833\ 418936 +0000
    @@ -16,7 +16,7 @@

       void testNumberOfPieces()
       {
    -    CPPUNIT_ASSERT( m_game->getNumberOfPieces () == 32 );
    +    CPPUNIT_ASSERT( BoardGameTest<GAMECLASS>::m_game->getNumberOfPieces () == \ 32 );
       }
    };