pt.c (value_dependent_expression_p): Don't check value_dependent_expression_p on...
authorJason Merrill <jason@redhat.com>
Tue, 15 Mar 2011 18:31:12 +0000 (14:31 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 15 Mar 2011 18:31:12 +0000 (14:31 -0400)
* pt.c (value_dependent_expression_p) [NOEXCEPT_EXPR]: Don't
check value_dependent_expression_p on the operand.

From-SVN: r171013

gcc/cp/ChangeLog
gcc/cp/pt.c

index 09ab014df09710d0e82c2ac6181cdbb0f6d39fd1..f8249dfca096be9dcf70bee6830f0c4bc003927e 100644 (file)
@@ -1,5 +1,9 @@
 2011-03-15  Jason Merrill  <jason@redhat.com>
 
+       Core 1074
+       * pt.c (value_dependent_expression_p) [NOEXCEPT_EXPR]: Don't
+       check value_dependent_expression_p on the operand.
+
        * semantics.c (push_cx_call_context): Return bool.
        (cxx_eval_call_expression): Handle excess depth.
 
index 95b82ee579dd2916b59ee1eb4b3f03f3c8d6e8ee..c8c1010182022f733e554fc5c7c86ddad68c3408 100644 (file)
@@ -18143,9 +18143,7 @@ value_dependent_expression_p (tree expression)
 
     case NOEXCEPT_EXPR:
       expression = TREE_OPERAND (expression, 0);
-      /* FIXME why check value-dependency?  */
-      return (type_dependent_expression_p (expression)
-             || value_dependent_expression_p (expression));
+      return type_dependent_expression_p (expression);
 
     case SCOPE_REF:
       {