[Boost-bugs] [Boost C++ Libraries] #11226: let statements fail to compile for void return types

Subject: [Boost-bugs] [Boost C++ Libraries] #11226: let statements fail to compile for void return types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-22 22:58:54


#11226: let statements fail to compile for void return types
------------------------------+---------------------
 Reporter: edaskel@… | Owner: theller
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 A let expression whose result is void will fail to compile, starting in
 1.58. It appears to be related to commit
 b959ed0c33ef28ec978689a8b1235661fcde93fe and specifically the change from
 code of the form

 return result-expression;

 to

 result_type r = result-expression;
 return r;

 which will fail for result_type void, as assignments are not permitted.

 A small test case that compiles in 1.57 but fails in 1.58 (gcc 4.8.2) is
 attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11226>
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:18 UTC