This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH for c++/70584 (parenthesized argument to x86 builtin)


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]