c++: Remove FLOAT_EXPR assert in tsubst.
authorMarek Polacek <polacek@redhat.com>
Thu, 18 Mar 2021 21:19:17 +0000 (17:19 -0400)
committerMarek Polacek <polacek@redhat.com>
Thu, 18 Mar 2021 21:20:32 +0000 (17:20 -0400)
This assert triggered when pr85013.C was compiled with -fchecking=2
which the usual testing doesn't exercise.  Let's remove it for now
and revisit in GCC 12.

gcc/cp/ChangeLog:

* pt.c (tsubst_copy_and_build) <case FLOAT_EXPR>: Remove.

gcc/cp/pt.c

index ea530ef..933dfc3 100644 (file)
@@ -19770,7 +19770,6 @@ tsubst_copy_and_build (tree t,
                                complain|decltype_flag));
 
     case FIX_TRUNC_EXPR:
-    case FLOAT_EXPR:
       /* convert_like should have created an IMPLICIT_CONV_EXPR.  */
       gcc_unreachable ();