aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/init.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-06-20 10:39:53 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-06-20 10:39:53 -0400
commitd84572a4009158fe24931e2f8d8a7aa496d8a570 (patch)
treeddd46f42a2c74e5fd3e577ca9e425f8c61baaaf8 /gcc/cp/init.c
parent4b7d9ed4a8e049e777252718c4cddb85fece7cde (diff)
downloadgcc-d84572a4009158fe24931e2f8d8a7aa496d8a570.zip
gcc-d84572a4009158fe24931e2f8d8a7aa496d8a570.tar.gz
gcc-d84572a4009158fe24931e2f8d8a7aa496d8a570.tar.bz2
re PR c++/43321 ([c++0x] ICE on valid auto)
PR c++/43321 * semantics.c (describable_type): Remove. * cp-tree.h: Likewise. * decl.c (cp_finish_decl): Don't call it. * init.c (build_new): Likewise. * parser.c (cp_parser_omp_for_loop): Likewise. * pt.c (tsubst_decl): Likewise. (do_auto_deduction): If we fail in a template, try again at instantiation time. From-SVN: r175212
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r--gcc/cp/init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 3b92665..140e064 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -2600,8 +2600,7 @@ build_new (VEC(tree,gc) **placement, tree type, tree nelts,
{
tree d_init = VEC_index (tree, *init, 0);
d_init = resolve_nondeduced_context (d_init);
- if (describable_type (d_init))
- type = do_auto_deduction (type, d_init, auto_node);
+ type = do_auto_deduction (type, d_init, auto_node);
}
}