Require parentheses when parsing transaction expressions.
authorTorvald Riegel <triegel@redhat.com>
Tue, 15 Nov 2011 12:16:13 +0000 (12:16 +0000)
committerTorvald Riegel <torvald@gcc.gnu.org>
Tue, 15 Nov 2011 12:16:13 +0000 (12:16 +0000)
commit69b765189a3dd5f235c2711d0908bad331ce40b7
tree7baa283db79257b474598846b79f119e071d5cc1
parent402356d1466804239212e0fec68d3753114d0cfe
Require parentheses when parsing transaction expressions.

gcc/
* c-parser.c (c_parser_transaction_expression): Require parentheses
when parsing transaction expressions.

gcc/cp/
* parser.c (cp_parser_transaction_expression): Require parentheses
when parsing transaction expressions.

gcc/testsuite/
* c-c++-common/tm/trxn-expr-3.c: New test.

From-SVN: r181383
gcc/ChangeLog
gcc/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/tm/trxn-expr-3.c [new file with mode: 0644]