r180997 - in /branches/transactional-memory/gcc...

rth@gcc.gnu.org rth@gcc.gnu.org
Sat Nov 5 01:22:00 GMT 2011


Author: rth
Date: Sat Nov  5 01:22:52 2011
New Revision: 180997

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180997
Log:
Avoid ICE with transaction expressions vs constant expressions.

        * cp/parser.c (enum non_integral_constant): Add NIC_TRANSACTION.
        (cp_parser_non_integral_constant_expression): Handle it.
        (cp_parser_transaction_expression): Generate an error if TM is
        not enabled.  Use cp_parser_non_integral_constant_expression.
        * testsuite/c-c++-common/tm/trxn-expr-2.c: New test.

Added:
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/trxn-expr-2.c
Modified:
    branches/transactional-memory/gcc/ChangeLog.tm
    branches/transactional-memory/gcc/cp/parser.c
    branches/transactional-memory/gcc/cp/semantics.c



More information about the Gcc-cvs mailing list