Boost C++ Libraries: Ticket #11226: let statements fail to compile for void return types https://svn.boost.org/trac10/ticket/11226 <p> 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 </p> <p> return result-expression; </p> <p> to </p> <p> result_type r = result-expression; return r; </p> <p> which will fail for result_type void, as assignments are not permitted. </p> <p> A small test case that compiles in 1.57 but fails in 1.58 (gcc 4.8.2) is attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11226 Trac 1.4.3 edaskel@… Wed, 22 Apr 2015 23:02:01 GMT attachment set https://svn.boost.org/trac10/ticket/11226 https://svn.boost.org/trac10/ticket/11226 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">let_testcase.cpp</span> </li> </ul> <p> Test case illustrating compile failure for void result type </p> Ticket edaskel@… Thu, 23 Apr 2015 04:58:38 GMT <link>https://svn.boost.org/trac10/ticket/11226#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11226#comment:1</guid> <description> <p> commit f63e401ea5cac691dcb91a6edaf8f92dbcaa91bc has been merged to fix this issue </p> </description> <category>Ticket</category> </item> <item> <author>bugs@…</author> <pubDate>Thu, 23 Apr 2015 06:39:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11226#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11226#comment:2</guid> <description> <p> I think this might be related to other compilation issues that exist for some time when targetting Phoenix V3: </p> <ul><li> <a class="ext-link" href="http://stackoverflow.com/a/19631830/85371"><span class="icon">​</span>http://stackoverflow.com/a/19631830/85371</a> (phoenix::try_) or </li><li> <a class="ext-link" href="http://stackoverflow.com/a/29452921/85371"><span class="icon">​</span>http://stackoverflow.com/a/29452921/85371</a> (phoenix::if_) </li></ul> </description> <category>Ticket</category> </item> <item> <author>edaskel@…</author> <pubDate>Thu, 22 Sep 2016 18:38:29 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11226#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11226#comment:3</guid> <description> <p> This bug was fixed and can be closed. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kohei Takahashi</dc:creator> <pubDate>Thu, 29 Sep 2016 01:11:42 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11226#comment:4 https://svn.boost.org/trac10/ticket/11226#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Yes, it should be fixed in 1.59. <a class="ext-link" href="https://github.com/boostorg/phoenix/commit/1a5348e5e46b348a816d30df30a724375c5a527e"><span class="icon">​</span>https://github.com/boostorg/phoenix/commit/1a5348e5e46b348a816d30df30a724375c5a527e</a> </p> Ticket