re PR c++/67980 (left shift count is negative [-Wshift-count-negative] generated...
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 4 Nov 2016 18:58:53 +0000 (18:58 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 4 Nov 2016 18:58:53 +0000 (18:58 +0000)
commit6e3ae7e6f5699430cdedd1ca2a7b5cfa020171aa
treebb6be5027945eeab60910722852a70025d9c6d43
parentfff6ed28b29e9fff2026ee79446f2e565ef63806
re PR c++/67980 (left shift count is negative [-Wshift-count-negative] generated for unreachable code)

/cp
2016-11-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67980
* pt.c (tsubst_expr, case IF_STMT): Use fold_non_dependent_expr
to suppress unwanted warnings.

/testsuite
2016-11-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67980
* g++.dg/cpp1y/pr67980.C: New.

From-SVN: r241858
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr67980.C [new file with mode: 0644]