id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1528,g++ 4.3.0 reports error because of redeclaration of next,jensseidel@…,Aleksey Gurtovoy,"Compiling parts of Fusion shows the following bug in MPL with a recent g++ 4.3 snapshot: In file included from /home/jens/trunk/boost/fusion/view/zip_view/detail/equal_to_impl.hpp:16, from /home/jens/trunk/boost/fusion/view/zip_view/zip_view_iterator.hpp:19, from /home/jens/trunk/boost/fusion/view/zip_view.hpp:12, from /home/jens/trunk/boost/fusion/include/zip_view.hpp:10, from /tmp/testDTdYXq.cpp:1: /home/jens/trunk/boost/mpl/zip_view.hpp:42: error: declaration of 'typedef struct boost::mpl::zip_iterator >, mpl_::na>::type> boost::mpl::zip_iterator::next' /home/jens/trunk/boost/mpl/next_prior.hpp:30: error: changes meaning of 'next' from 'struct boost::mpl::next >' /home/jens/trunk/boost/mpl/zip_view.hpp:56: error: declaration of 'typedef struct boost::mpl::zip_iterator >, mpl_::na>::type> boost::mpl::zip_view::begin' /home/jens/trunk/boost/mpl/begin_end.hpp:32: error: changes meaning of 'begin' from 'struct boost::mpl::begin >' /home/jens/trunk/boost/mpl/zip_view.hpp:57: error: declaration of 'typedef struct boost::mpl::zip_iterator >, mpl_::na>::type> boost::mpl::zip_view::end' /home/jens/trunk/boost/mpl/begin_end.hpp:44: error: changes meaning of 'end' from 'struct boost::mpl::end >' I think the problem is that in boost::mpl::zip_iterator boost::mpl::next is visible and does not allow to define a new next (even if relative to zip_iterator). See http://en.opensuse.org/GCC_4.3_Transition and http://gcc.gnu.org/ml/gcc/2007-09/msg00480.html for more details. Just renaming one of the ""next"" fixes this problem but introduces of course many more. PS: Please fix the typo ""shorcuts"" in one of the MPL header file.",Bugs,closed,Boost 1.36.0,mpl,Boost Development Trunk,Problem,fixed,,