Hi,
gently pinging this....
https://gcc.gnu.org/ml/gcc-patches/2014-12/msg00961.html
On 12/10/2014 08:24 PM, Paolo Carlini wrote:
Hi,
this regression, a spurious warning about taking the address of a
register parameter, happens in C++14 mode due to the use of
force_paren_expr, called by finish_parenthesized_expr, which ends up
calling build_static_cast. Manuel mentioned in the audit trail that
TREE_NO_WARNING can be used for DECLs too, and indeed I noticed today
that we are *already* using it for EXPRs, at the beginning of
finish_parenthesized_expr. I experimented a bit with restricting the
setting, eg, to PARM_DECLs only, but in fact we have an identical
issue for, eg, register VAR_DECLs. Tested x86_64-linux.
Thanks,
Paolo.