On 11/04/2011 02:19 PM, Richard Henderson wrote:
On 11/04/11 10:51, Jason Merrill wrote:
Are you sure that [[attribute]] is the only way a [ can appear there?
Yes. We're immediately following a keyword. The only two valid tokens that can
follow that keyword are [ and {.
Ah, I saw the cp_parser_expression call in
cp_parser_transaction_expression and didn't notice that we only get
there with a '('. Speaking of which, that function's comment doesn't
match the code:
+ transaction-expression:
+ __transaction_atomic txn-exception-spec[opt] compound-statement
+ __transaction_relaxed txn-exception-spec[opt] compound-statement
Also, in
+ function-definition:
+ decl-specifier-seq [opt] declarator function-atomic-block
function-atomic-block should be function-transaction-block, right?
Jason