* typeck2.c (build_m_component_ref): Use error_operand_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114897
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-06-22 Lee Millward <lee.millward@gmail.com>
+
+ PR c++/27805
+ * typeck2.c (build_m_component_ref): Use error_operand_p.
+
2006-06-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28111
tree binfo;
tree ctype;
- if (datum == error_mark_node || component == error_mark_node)
+ if (error_operand_p (datum) || error_operand_p (component))
return error_mark_node;
ptrmem_type = TREE_TYPE (component);
+2006-06-22 Lee Millward <lee.millward@gmail.com>
+
+ PR c++/27805
+ * g++.dg/parse/ptrmem6.C: New test.
+
2006-06-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28111
--- /dev/null
+//PR C++/27805
+
+struct A;
+
+void foo()
+{
+ int A::* p;
+ A a; // { dg-error "incomplete type" }
+ a.*p;
+}
+