From 79d3d3f46cd4080579490adf05b38cd6338eb573 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 2 Mar 2011 21:49:28 -0500 Subject: re PR c++/47950 ([C++0x] Internal compiler error: non-dependent declaration as condition causes tsubst_copy_and_build assertion failure.) PR c++/47950 * parser.c (cp_parser_condition): Don't fold_non_dependent_expr here. From-SVN: r170639 --- gcc/cp/parser.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'gcc/cp/parser.c') diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index c63d5b3a049..510fcb11179 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -8687,9 +8687,6 @@ cp_parser_condition (cp_parser* parser) if (BRACE_ENCLOSED_INITIALIZER_P (initializer)) maybe_warn_cpp0x (CPP0X_INITIALIZER_LISTS); - if (!non_constant_p) - initializer = fold_non_dependent_expr (initializer); - /* Process the initializer. */ cp_finish_decl (decl, initializer, !non_constant_p, -- cgit v1.2.1