diff options
author | Jason Merrill <jason@redhat.com> | 2011-04-14 10:59:58 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-04-14 10:59:58 -0400 |
commit | fe5b5c364b49300ba7e1e283f03f593d3e37524a (patch) | |
tree | 3b9fbfa2e2c5327fbcc704558440a2ca72fec6f2 /gcc/cp/init.c | |
parent | 4a5ba3ed87794d7ea5ab54d0c89cf6cedd0e6c9f (diff) | |
download | gcc-fe5b5c364b49300ba7e1e283f03f593d3e37524a.zip gcc-fe5b5c364b49300ba7e1e283f03f593d3e37524a.tar.gz gcc-fe5b5c364b49300ba7e1e283f03f593d3e37524a.tar.bz2 |
re PR c++/48446 (internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1946)
PR c++/48446
* decl.c (compute_array_index_type): Use get_temp_regvar instead
of variable_size.
* init.c (get_temp_regvar): No longer static.
* cp-tree.h: Declare it.
From-SVN: r172432
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 3131690..32afa03 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -45,7 +45,6 @@ static void expand_virtual_init (tree, tree); static tree sort_mem_initializers (tree, tree); static tree initializing_context (tree); static void expand_cleanup_for_base (tree, tree); -static tree get_temp_regvar (tree, tree); static tree dfs_initialize_vtbl_ptrs (tree, void *); static tree build_dtor_call (tree, special_function_kind, int); static tree build_field_list (tree, tree, int *); @@ -2875,7 +2874,7 @@ create_temporary_var (tree type) things when it comes time to do final cleanups (which take place "outside" the binding contour of the function). */ -static tree +tree get_temp_regvar (tree type, tree init) { tree decl; |