diff options
Diffstat (limited to 'gcc/d')
-rw-r--r-- | gcc/d/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/d/d-convert.cc | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/d/ChangeLog b/gcc/d/ChangeLog index 04eaccf..5aa50a26 100644 --- a/gcc/d/ChangeLog +++ b/gcc/d/ChangeLog @@ -1,3 +1,9 @@ +2019-08-11 Iain Buclaw <ibuclaw@gdcproject.org> + + PR d/90601 + * d-convert.cc (convert_expr): Don't convert an expression to its + original front-end type before converting to its target type. + 2019-08-10 Iain Buclaw <ibuclaw@gdcproject.org> PR d/91238 diff --git a/gcc/d/d-convert.cc b/gcc/d/d-convert.cc index b020eab..fd4fc3c 100644 --- a/gcc/d/d-convert.cc +++ b/gcc/d/d-convert.cc @@ -588,7 +588,6 @@ convert_expr (tree exp, Type *etype, Type *totype) return compound_expr (exp, build_zero_cst (build_ctype (tbtype))); } - exp = fold_convert (build_ctype (etype), exp); gcc_assert (TREE_CODE (exp) != STRING_CST); break; } |