This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]