projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4670f5
)
c++: Remove FLOAT_EXPR assert in tsubst.
author
Marek Polacek
<polacek@redhat.com>
Thu, 18 Mar 2021 21:19:17 +0000
(17:19 -0400)
committer
Marek 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
patch
|
blob
|
history
diff --git
a/gcc/cp/pt.c
b/gcc/cp/pt.c
index
ea530ef
..
933dfc3
100644
(file)
--- a/
gcc/cp/pt.c
+++ b/
gcc/cp/pt.c
@@
-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 ();