Commit 297d4105 by Mark Mitchell Committed by Mark Mitchell

re PR c++/29080 (Multiple-inheritance with template method function code…

re PR c++/29080 (Multiple-inheritance with template method function code triggers "internal compiler error: in build_base_path, at cp/class.c:273")

	PR c++/29080
	* parser.c (cp_parser_postfix_dot_deref_expression): Use
	BASELINK_ACCESS_BINFO as the qualifying scope when calling
	adjust_result_of_qualified_name_lookup. 
	PR c++/29080
	* g++.dg/template/member7.C: New test.

From-SVN: r117360
parent 3af947c6
2006-10-01 Mark Mitchell <mark@codesourcery.com>
PR c++/29105
* pt.c (tsubst_baselink): Substituteinto the qualifying scope.
* semantics.c (baselink_for_fns): Build a baselink, even when
processing a template.
PR c++/29080
* parser.c (cp_parser_postfix_dot_deref_expression): Use
BASELINK_ACCESS_BINFO as the qualifying scope when calling
adjust_result_of_qualified_name_lookup.
2006-09-25 Lee Millward <lee.millward@codesourcery.com>
PR c++/27329
......
......@@ -4593,7 +4593,7 @@ cp_parser_postfix_dot_deref_expression (cp_parser *parser,
}
if (scope && name && BASELINK_P (name))
adjust_result_of_qualified_name_lookup
(name, BINFO_TYPE (BASELINK_BINFO (name)), scope);
(name, BINFO_TYPE (BASELINK_ACCESS_BINFO (name)), scope);
postfix_expression
= finish_class_member_access_expr (postfix_expression, name,
template_p);
......
2006-10-01 Mark Mitchell <mark@codesourcery.com>
PR c++/29105
* g++.dg/template/member6.C: New test.
* g++.dg/parse/typename7.C: Adjust error markers.
PR c++/29080
* g++.dg/template/member7.C: New test.
2006-09-30 Joseph S. Myers <joseph@codesourcery.com>
PR c/24010
// PR c++/29080
struct Base {
template<class C> void method() { }
};
struct Left : public Base { };
struct Right : public Base { };
struct Join : public Left, public Right { };
void function()
{
Join join;
join.Left::method<int>();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment