------- Comment #1 from jamborm at gcc dot gnu dot org 2009-09-29 16:42 ------- The following patch fixes the problem, I will send it to the mailing list soon:
2009-09-29 Martin Jambor <mjam...@suse.cz> PR c++/41503 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if DECL_ARTIFICIAL (param_decl) is true. Index: mine/gcc/cp/pt.c =================================================================== --- mine.orig/gcc/cp/pt.c +++ mine/gcc/cp/pt.c @@ -2669,7 +2669,8 @@ get_function_template_decl (const_tree p 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)); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41503