/cp
commit69f685c0a62f821809451986700a51b96266d53b
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 May 2012 15:02:05 +0000 (4 15:02 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 May 2012 15:02:05 +0000 (4 15:02 +0000)
tree46a83e6c2ea8ac15132e01ee6c536631015b7c54
parentc92b1bc7f829182c2a5276ebd4567f54f6cc713d
/cp
2012-05-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53166
* pt.c (instantiate_class_template_1): Increase / decrease
c_inhibit_evaluation_warnings around the tsubst_expr call
for STATIC_ASSERT_CONDITION.
(tsubst_expr, case STATIC_ASSERT): Likewise.
* typeck.c (cp_build_binary_op, case EQ_EXPR/NE_EXPR): Check
c_inhibit_evaluation_warnings in the OPT_Waddress warnings.

/testsuite
2012-05-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53166
* g++.dg/cpp0x/static_assert7.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187165 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/static_assert7.C [new file with mode: 0644]