OSDN Git Service

2009-10-01 Martin Jambor <mjambor@suse.cz>
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2009 09:31:08 +0000 (09:31 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2009 09:31:08 +0000 (09:31 +0000)
PR c++/41503
* cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
DECL_ARTIFICIAL (param_decl) is true.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152365 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cp/pt.c

index e80433a..78f6a6e 100644 (file)
@@ -1,3 +1,9 @@
+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.
index d078642..5f9b07c 100644 (file)
@@ -2669,7 +2669,8 @@ get_function_template_decl (const_tree primary_func_tmpl_inst)
 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));