re PR c++/41503 (function_parameter_expanded_from_pack_p segfaults when passed a PARM_DECL created by IPA-SRA)
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
This commit is contained in:
parent
7ecbca9d02
commit
ed9fa13310
2 changed files with 8 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue