/cp
2017-03-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/70266
* except.c (build_must_not_throw_expr): Perform the implicit
conversions on the condition.
/testsuite
2017-03-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/70266
* g++.dg/tm/pr70266.C: New.
From-SVN: r245901
+2017-03-05 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/70266
+ * except.c (build_must_not_throw_expr): Perform the implicit
+ conversions on the condition.
+
2017-03-03 Jason Merrill <jason@redhat.com>
* mangle.c (mangle_decl): Check -Wnoexcept-type instead of
if (cond && !value_dependent_expression_p (cond))
{
+ cond = perform_implicit_conversion_flags (boolean_type_node, cond,
+ tf_warning_or_error,
+ LOOKUP_NORMAL);
cond = cxx_constant_value (cond);
if (integer_zerop (cond))
return body;
+2017-03-05 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/70266
+ * g++.dg/tm/pr70266.C: New.
+
2017-03-05 Andre Vehreschild <vehre@gcc.gnu.org>
Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
--- /dev/null
+// { dg-do compile { target c++11 } }
+// { dg-options "-fgnu-tm" }
+
+template < typename T >
+int foo (int x, T t)
+{
+ return __transaction_atomic noexcept (foo) (1); // { dg-error "cannot resolve" }
+}