GCC 4.6.0 rejects Boost Intrusive header

GCC 4.6.0 rejects the *Boost* intrusive header list.hpp.
Here's the command line:
g++ -std=c++0x -O2 -s -W -Wall -I /home/brian/boost_1_46_1 -c -o
jaj.o jaj.cc
and the output:
In file included from jaj.cc:1:0:
/home/brian/boost_1_46_1/*boost*/intrusive/list.hpp: In static member
function =91static *boost*::intrusive::list_impl<Config>&
*boost*::intrusive::list_impl<Config>::priv_container_from_end_iterator(const
const_iterator&)=92:
/home/brian/boost_1_46_1/*boost*/intrusive/list.hpp:1291:89: sorry,
unimplemented: unexpected ast of kind field_decl
/home/brian/boost_1_46_1/*boost*/intrusive/list.hpp:1291: confused by
earlier errors, bailing out
Preprocessed source stored into /tmp/ccRWz6ZT.out file, please attach
this to your bugreport.
The .cc file is one line -- an include of list.hpp.
Here's the function that it is complaining about:
private:
static list_impl &priv_container_from_end_iterator(const
const_iterator &end_iterator)
{
root_plus_size *r = detail::parent_from_member

GCC 4.6.0 rejects the *Boost* intrusive header list.hpp. Here's the command line: g++ -std=c++0x -O2 -s -W -Wall -I /home/brian/boost_1_46_1 -c -o jaj.o jaj.cc
and the output: In file included from jaj.cc:1:0: /home/brian/boost_1_46_1/*boost*/intrusive/list.hpp: In static member function =91static *boost*::intrusive::list_impl<Config>& *boost*::intrusive::list_impl<Config>::priv_container_from_end_iterator(const
the bug [1] is related to the c++0x support and has been fixed a few weeks ago tim [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49298
participants (2)
-
Brian Wood
-
Tim Blechmann