Boost logo

Boost :

From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2008-07-07 11:04:33


Hi !

The latest changes to Boost.Test broke compilation with gcc in "pedantic"
mode. This seems to be:
http://svn.boost.org/trac/boost/changeset/47153

Just add "<toolset>gcc:<cxxflags>-pedantic" to libs/test/test/Jamfile.v2 and
recompile. This will bail out with:

gcc.compile.c++
/build/bjam/boost_1.36.0/libs/test/test/output_test_stream_test.test/gcc-4.2/debug/output_test_stream_test.o
output_test_stream_test.cpp: In member function 'void
test_constructor::test_method()':
output_test_stream_test.cpp:30: error: ISO C++ forbids braced-groups within
expressions

I've disabled "return value support" locally (by commenting out test_tools.hpp
line 86) but would like to have a conformant solution.

Should we rise the warning level by _always_ activating "-pedantic" at least
for the test suite ?

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk