Closed Flast closed 9 years ago
Wouldn't this disallow Named Return Optimization for C++14 in GCC 4.9? I have no access to this compiler but maybe replacing:
(REF)
//
with
#define BOOST_MOVE_RET(RET_TYPE, REF)\
REF
//
could be a better fix. Could you try it, please?
#define BOOST_MOVE_RET(RET_TYPE, REF)\ REF //
Ah, yes. It should work. I'll resend a patch.
I've committed:
SHA-1: 1f6892c935633a322a8f0464ef34810c9a613d6e
Let's see if this fixes the problem. Thanks for the report.
Good! It works fine me!
GCC 4.9.0 and 4.9.1 have a regression: don't compile parenthesized return stmt in C++14 mode.
This PR will fix BP x86_64 C++11 - move - doc_move_return / gcc-4.9.1~c14, and other test failures.
For more details, see: https://gcc.gnu.org/PR63437 .