summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pointer-arith-4.c
diff options
context:
space:
mode:
authortorvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-07 21:03:40 +0000
committertorvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-07 21:03:40 +0000
commitaa8e9a877dcc0984c75701ba7872a04a0a9cc14a (patch)
tree5581089bfe37f8a05442343e0f8b7626a92b04b0 /gcc/testsuite/gcc.dg/pointer-arith-4.c
parent62b6f0bb63911d81f5fc26c1ebb448dcaf6c4429 (diff)
downloadgcc-aa8e9a877dcc0984c75701ba7872a04a0a9cc14a.tar.gz
Fix instantiation of transaction expressions.
* cp/pt.c (tsubst_expr) [TRANSACTION_EXPR]: If body is not a statement, create an expression instead. * cp/cp-tree.h (TRANSACTION_EXPR_IS_STMT, build_transaction_expr): New. * cp/parser.c (cp_parser_transaction_expression): Use build_transaction_expr. * cp/semantics.c (build_transaction_expr): New. (finish_transaction_stmt): Set TRANSACTION_EXPR_IS_STMT. * testsuite/g++.dg/tm/template-1.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/transactional-memory@181115 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pointer-arith-4.c')
0 files changed, 0 insertions, 0 deletions