c++: Add assert to tsubst.
As discussed in the r11-7709 patch, we can now make sure that tsubst never sees a FLOAT_EXPR, much like its counterpart FIX_TRUNC_EXPR. gcc/cp/ChangeLog: * pt.c (tsubst_copy_and_build): Add assert.
This commit is contained in:
parent
55308fc263
commit
c5e55673b4
1 changed files with 2 additions and 0 deletions
|
@ -19770,6 +19770,8 @@ 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 ();
|
||||
|
||||
case ADDR_EXPR:
|
||||
|
|
Loading…
Add table
Reference in a new issue