Opened 13 years ago

Closed 13 years ago

#3371 closed Bugs (fixed)

Code with <boost/mpi.hpp> does not compile with gcc 4.4.1

Reported by: anubis@… Owned by: Matthias Troyer
Milestone: Boost 1.41.0 Component: mpi
Version: Boost Development Trunk Severity: Showstopper
Keywords: Cc: smr@…

Description

[anubis@dragon:~/CPP/boost-svn/libs/mpi/example]% svn info .
URL: http://svn.boost.org/svn/boost/trunk/libs/mpi/example
Repository Root: http://svn.boost.org/svn/boost
Repository UUID: b8fc166d-592f-0410-95f2-cb63ce0dd405
Revision: 55797

[anubis@dragon:~/CPP/boost-svn/libs/mpi/example]% mpic++ -I../../../ -o test_hwb hello_world_broadcast.cpp
In file included from ../../../boost/mpi/detail/mpi_datatype_cache.hpp:13,
from ../../../boost/mpi/datatype.hpp:27,
from ../../../boost/mpi/communicator.hpp:20,
from ../../../boost/mpi/collectives.hpp:21,
from ../../../boost/mpi.hpp:23,
from hello_world_broadcast.cpp:9:
../../../boost/mpi/detail/mpi_datatype_oarchive.hpp: In member function ‘void boost::mpi::detail::mpi_datatype_oarchive::save_enum(const T&, mpl_::true_)’:
../../../boost/mpi/detail/mpi_datatype_oarchive.hpp:64: error: expected primary-expression before ‘enum’
../../../boost/mpi/detail/mpi_datatype_oarchive.hpp:64: error: expected ‘;’ before ‘enum’

[anubis@dragon:~/CPP/boost-svn/libs/mpi/example]% mpic++ -showme
g++ -pthread -lmpi_cxx -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl

[anubis@dragon:~/CPP/boost-svn/libs/mpi/example]% g++ --version
g++ (GCC) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Change History (3)

comment:1 by anonymous, 13 years ago

Owner: changed from Douglas Gregor to Matthias Troyer

comment:2 by smr@…, 13 years ago

Cc: smr@… added
Milestone: Boost 1.40.0Boost 1.41.0

This bug now shows up in release testing for 1.41; c.f. http://www.boost.org/development/tests/release/output/Debian-Sid-boost-bin-v2-libs-fusion-test-adapt_assoc_struct-test-gcc-4-4-debug-sequence.html

Also reported as a Debian bug: http://bugs.debian.org/550300

This would be nice to fix for 1.41.

Thanks, -Steve

comment:3 by anonymous, 13 years ago

Resolution: fixed
Status: newclosed

I checked in a fix to the trunk. The release branch was already fixed.

Note: See TracTickets for help on using tickets.