re PR c++/60955 (Erroneous warning about taking address of register with std=c++1y)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 18 Dec 2014 17:53:55 +0000 (17:53 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 18 Dec 2014 17:53:55 +0000 (17:53 +0000)
commit6e4992ca7811bcb1d3ebe587d06e346c09d72cc1
tree7e294e7ddc4eda46df7d1533f7a367674c178de6
parentfbe575b652f5bdcc459f447a0e6f0e059996d4ef
re PR c++/60955 (Erroneous warning about taking address of register with std=c++1y)

/cp
2014-12-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60955
* pt.c (struct warning_sentinel): Move it...
* cp-tree.h: ... here.
* semantics.c (force_paren_expr): Use it.

/testsuite
2014-12-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60955
* g++.dg/warn/register-parm-1.C: New.

From-SVN: r218871
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/register-parm-1.C [new file with mode: 0644]