re PR c++/64877 (strange warning message from -Waddress)
authorPaolo Carlini <paolo@gcc.gnu.org>
Tue, 3 Feb 2015 17:21:49 +0000 (17:21 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 3 Feb 2015 17:21:49 +0000 (17:21 +0000)
commit457d0ace46de02afd84f2ed5bd333a72cb0f414f
treef58584a32004449f8bc41aa2b394634c095aaadc
parent2cb844ce9cf37fdd75438e27b515371ad1f71405
re PR c++/64877 (strange warning message from -Waddress)

/cp
2015-02-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/64877
* typeck.c (cp_build_binary_op): Avoid spurious -Waddress warnings
for generated expressions.

/testsuite
2015-02-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/64877
* g++.dg/warn/Waddress-2.C: New.

From-SVN: r220374
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Waddress-2.C [new file with mode: 0644]