/gcc
2019-11-20 Paolo Carlini <paolo.carlini@oracle.com>
* typeck2.c (build_x_arrow): Early return if decay_conversion
returns error_mark_node.
/testsuite
2019-11-20 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/parse/error43.C: Adjust expected error.
From-SVN: r278530
+2019-11-20 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * typeck2.c (build_x_arrow): Early return if decay_conversion
+ returns error_mark_node.
+
2019-11-20 Jakub Jelinek <jakub@redhat.com>
PR c++/90767
last_rval = convert_from_reference (last_rval);
}
else
- last_rval = decay_conversion (expr, complain);
+ {
+ last_rval = decay_conversion (expr, complain);
+ if (last_rval == error_mark_node)
+ return error_mark_node;
+ }
if (TYPE_PTR_P (TREE_TYPE (last_rval)))
{
+2019-11-20 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * g++.dg/parse/error43.C: Adjust expected error.
+
2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
* README: Use https for gcc.gnu.org.
// { dg-options "" }
class C { public: C* f(); int get(); };
-int f(C* p) { return p->f->get(); } // { dg-error "forget the '\\(\\)'|base operand" }
+int f(C* p) { return p->f->get(); } // { dg-error "25:invalid use of member function" }