[Boost-bugs] [Boost C++ Libraries] #8298: Clang error with Boost Phoenix Local Name Assignment using C++11

Subject: [Boost-bugs] [Boost C++ Libraries] #8298: Clang error with Boost Phoenix Local Name Assignment using C++11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-16 21:49:19


#8298: Clang error with Boost Phoenix Local Name Assignment using C++11
-------------------------------------------+--------------------------------
 Reporter: Paul Keir <pkeir@…> | Owner: theller
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------------+--------------------------------
 The attached minimal main file (also shown below) will fail to compile
 with Clang++ version 3.2 under 64-bit Ubuntu, and also Arch Linux. It will
 however only fail when the '''-std=c++11''' flag is used.

 I noticed that the default Boost version on Ubuntu (1.49.0) did not give
 the error, so I tried Boost 1.53.0, 1.52.0 and also boost-trunk from svn,
 all of which give the same error. Boost 1.51.0 does not give the error.

 {{{
 #!cpp
 #include <iostream>
 #include <boost/phoenix.hpp>

 namespace phoenix = boost::phoenix;
 using namespace phoenix::local_names;

 int main(int argc, char *argv[])
 {
   phoenix::lambda(_a=17)[
     _a = 18,
     std::cout << _a << std::endl
   ]()();
   return 0;
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8298>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC