------- Comment #2 from rguenth at gcc dot gnu dot org 2007-10-02 11:55 ------- Reduced testcase:
namespace boost { namespace lambda { template <class Base> class lambda_functor; enum { FIRST = 0x01 }; template <int I> struct placeholder; template<> struct placeholder<FIRST> { }; typedef const lambda_functor<placeholder<FIRST> > placeholder1_type; template <class T> class lambda_functor : public T { }; namespace { boost::lambda::placeholder1_type free1 = boost::lambda::placeholder1_type(); boost::lambda::placeholder1_type& _1 = free1; } } } using boost::lambda::_1; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33625