Commit 557165ae by Jason Merrill Committed by Jason Merrill

parser.c (cp_parser_init_declarator): Pass LOOKUP_NORMAL to cp_finish_decl.

	* parser.c (cp_parser_init_declarator): Pass LOOKUP_NORMAL
	to cp_finish_decl.

From-SVN: r162377
parent 75a75e91
2010-07-21 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_init_declarator): Pass LOOKUP_NORMAL
to cp_finish_decl.
2010-07-20 Jeffrey Yasskin <jyasskin@google.com>
PR c++/44641
......
......@@ -14089,7 +14089,7 @@ cp_parser_init_declarator (cp_parser* parser,
`explicit' constructor is OK. Otherwise, an
`explicit' constructor cannot be used. */
((is_direct_init || !is_initialized)
? 0 : LOOKUP_ONLYCONVERTING));
? LOOKUP_NORMAL : LOOKUP_IMPLICIT));
}
else if ((cxx_dialect != cxx98) && friend_p
&& decl && TREE_CODE (decl) == FUNCTION_DECL)
......
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