On 05/23/2016 02:58 PM, Jason Merrill wrote:
The C++14 decltype(auto) obfuscation was confusing the x86 builtin; it's
a simple matter to undo it during delayed folding, thanks to the
maybe_undo_parenthesized_ref function that Patrick recently introduced.

But using cp_fold_maybe_rvalue here is wrong, as it will mean unconditionally replacing a variable with its initializer. Better to use plain cp_fold and improve cp_fold_maybe_rvalue to handle getting a decl back from cp_fold.

Tested x86_64-pc-linux-gnu, applying to trunk.


Reply via email to