re PR c++/48277 (ICE for g++.dg/ext/altivec-cell-1.C on powerpc*-*-*)
authorJason Merrill <jason@redhat.com>
Thu, 31 Mar 2011 22:03:50 +0000 (18:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 31 Mar 2011 22:03:50 +0000 (18:03 -0400)
PR c++/48277
* semantics.c (finish_call_expr): Remove assert.

From-SVN: r171801

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

index dce49e948d4151b9195c99d1d9656815129d105a..387677e8e7732f0db36d31175619543703dcd346 100644 (file)
@@ -1,5 +1,8 @@
 2011-03-31  Jason Merrill  <jason@redhat.com>
 
+       PR c++/48277
+       * semantics.c (finish_call_expr): Remove assert.
+
        PR c++/48280
        * method.c (defaultable_fn_check): Templates are not defaultable.
 
index e444d91267f7fc359c23afd9e817720df9b2eb1c..a15740a81eef2d5c76675582863378b1a002bb40 100644 (file)
@@ -2154,12 +2154,6 @@ finish_call_expr (tree fn, VEC(tree,gc) **args, bool disallow_virtual,
     {
       if (TREE_CODE (result) == INDIRECT_REF)
        result = TREE_OPERAND (result, 0);
-      gcc_assert (TREE_CODE (result) == CALL_EXPR
-                 /* FIXME cp_build_function_call_vec should avoid argument
-                    and return transformations like build_over_call does.  */
-                 || TREE_CODE (result) == TARGET_EXPR
-                 || TREE_CODE (fn) == PSEUDO_DTOR_EXPR
-                 || errorcount);
       result = build_call_vec (TREE_TYPE (result), orig_fn, orig_args);
       KOENIG_LOOKUP_P (result) = koenig_p;
       release_tree_vector (orig_args);