Commit 6e887223 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/52312 (grokfndecl: valgrind problem)

	PR c++/52312
	* typeck.c (check_literal_operator_args): Initialize *long_double_p
	and *long_long_unsigned_p even if processing_template_decl.

From-SVN: r184416
parent 9954e17f
2012-02-21 Jakub Jelinek <jakub@redhat.com>
PR c++/52312
* typeck.c (check_literal_operator_args): Initialize *long_double_p
and *long_long_unsigned_p even if processing_template_decl.
2012-02-16 Jason Merrill <jason@redhat.com>
PR c++/52248
......
......@@ -8483,6 +8483,9 @@ check_literal_operator_args (const_tree decl,
bool *long_long_unsigned_p, bool *long_double_p)
{
tree argtypes = TYPE_ARG_TYPES (TREE_TYPE (decl));
*long_long_unsigned_p = false;
*long_double_p = false;
if (processing_template_decl || processing_specialization)
return argtypes == void_list_node;
else
......@@ -8491,9 +8494,6 @@ check_literal_operator_args (const_tree decl,
int arity;
int max_arity = 2;
*long_long_unsigned_p = false;
*long_double_p = false;
/* Count the number and type of arguments and check for ellipsis. */
for (argtype = argtypes, arity = 0;
argtype && argtype != void_list_node;
......
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