Commit 584672ee by Mark Mitchell Committed by Mark Mitchell

re PR c++/9411 ([New parser] Template function lookup problem)

	PR c++/9411
	* parser.c (cp_parser_postfix_expression): Check dependency of
	functions.

	PR c++/9411
	* g++.dg/template/explicit2.C: New test.

From-SVN: r69196
parent a9189cc0
2003-07-10 Mark Mitchell <mark@codesourcery.com>
PR c++/9411
* parser.c (cp_parser_postfix_expression): Check dependency of
functions.
2003-07-09 Mark Mitchell <mark@codesourcery.com>
PR c++/10032
......
......@@ -3846,6 +3846,7 @@ cp_parser_postfix_expression (cp_parser *parser, bool address_p)
&& (type_dependent_expression_p (instance)
|| (!BASELINK_P (fn)
&& TREE_CODE (fn) != FIELD_DECL)
|| type_dependent_expression_p (fn)
|| any_type_dependent_arguments_p (args)))
{
postfix_expression
......
2003-07-10 Mark Mitchell <mark@codesourcery.com>
PR c++/9411
* g++.dg/template/explicit2.C: New test.
PR c++/10032
* g++.dg/warn/pedantic1.C: New test.
......
struct X {
template <class B> void foo(B);
};
template <class D>
void bar() {
X().foo<D>(1);
}
template void bar<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