2009-10-01 Martin Jambor <mjambor@suse.cz>
PR c++/41503
* cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
DECL_ARTIFICIAL (param_decl) is true.
From-SVN: r152365
+2009-10-01 Martin Jambor <mjambor@suse.cz>
+
+ PR c++/41503
+ * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
+ DECL_ARTIFICIAL (param_decl) is true.
+
2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
* tree.h (tree_decl_common::lang_flag_8): New.
bool
function_parameter_expanded_from_pack_p (tree param_decl, tree pack)
{
- if (! function_parameter_pack_p (pack))
+ if (DECL_ARTIFICIAL (param_decl)
+ || !function_parameter_pack_p (pack))
return false;
gcc_assert (DECL_NAME (param_decl) && DECL_NAME (pack));