On 07/09/13 18:54, Jason Merrill wrote:
> OK.
>
I've reproduced the same problem with the 4.7 and 4.8 branch, and checked that
applying the patch fixes the problem.
Committed to 4.7 and 4.8 branch as well.
Thanks,
- Tom
OK.
Jason
On 04/09/13 19:21, Jason Merrill wrote:
> On 09/03/2013 06:03 AM, Tom de Vries wrote:
>> * semantics.c (finish_transaction_stmt, build_transaction_expr): Handle
>> flag_exceptions.
>
> I'd rather handle this at a lower level, by making
> build_must_not_throw_expr return its argument if
On 09/03/2013 06:03 AM, Tom de Vries wrote:
* semantics.c (finish_transaction_stmt, build_transaction_expr): Handle
flag_exceptions.
I'd rather handle this at a lower level, by making
build_must_not_throw_expr return its argument if -fno-exceptions.
Jason
Jason,
Consider this testcase reduced from g++.dg/tm/noexcept-1.C:
...
struct TrueFalse
{
static constexpr bool v() { return true; }
};
int global;
template int foo()
{
__transaction_atomic noexcept(T::v()) { global += 1; }
return __transaction_atomic noexcept(T::v()) (global + 2);
}
int