/cp
2014-12-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60845
* typeck.c (finish_class_member_access_expr): Use %q#T instead of
%qD in error message.
/testsuite
2014-12-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60845
* g++.dg/parse/error55.C: New.
From-SVN: r218218
+2014-12-01 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/60845
+ * typeck.c (finish_class_member_access_expr): Use %q#T instead of
+ %qD in error message.
+
2014-11-29 Jakub Jelinek <jakub@redhat.com>
* cp-gimplify.c (cxx_omp_clause_apply_fn): Remove NULL last argument
if (member == NULL_TREE)
{
if (complain & tf_error)
- error ("%qD has no member named %qE",
+ error ("%q#T has no member named %qE",
TREE_CODE (access_path) == TREE_BINFO
? TREE_TYPE (access_path) : object_type, name);
return error_mark_node;
+2014-12-01 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/60845
+ * g++.dg/parse/error55.C: New.
+
2014-12-01 Richard Biener <rguenther@suse.de>
PR tree-optimization/15346
--- /dev/null
+// PR c++/60845
+
+class A { };
+typedef A B;
+void foo (B &a) {
+ a.x(); // { dg-error "'B {aka class A}' has no member named 'x'" }
+}