re PR c++/49813 ([C++0x] sinh vs asinh vs constexpr)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 28 Jul 2011 20:59:11 +0000 (20:59 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Thu, 28 Jul 2011 20:59:11 +0000 (20:59 +0000)
2011-07-28  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/49813
        * semantics.c (potential_constant_expression_1):  Handle FMA_EXPR.

Checking this in for Paolo.

From-SVN: r176899

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 653a0ab4d49fd51c261c352a60001f625fb21cbf..ccaba95e8806a56ccb692e40f7dfdca4426b8705 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-28  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/49813
+       * semantics.c (potential_constant_expression_1):  Handle FMA_EXPR.
+
 2011-07-27  Jeffrey Yasskin  <jyasskin@google.com>
 
        * pt.c (build_template_decl): Copy the function_decl's
index fdd6c33b576adce9cdae6d4416ccfc5e0f34992a..c44c0efd0ae6259032939b8f58e74985594da039 100644 (file)
@@ -8057,6 +8057,13 @@ potential_constant_expression_1 (tree t, bool want_rval, tsubst_flags_t flags)
          return false;
       return true;
 
+    case FMA_EXPR:
+     for (i = 0; i < 3; ++i)
+      if (!potential_constant_expression_1 (TREE_OPERAND (t, i),
+                                           true, flags))
+       return false;
+     return true;
+
     case COND_EXPR:
     case VEC_COND_EXPR:
       /* If the condition is a known constant, we know which of the legs we