trans-const.c (gfc_conv_constant_to_tree): Use correct tree type for COMPLEX constants.
* trans-const.c (gfc_conv_constant_to_tree): Use correct tree type for COMPLEX constants. From-SVN: r95941
This commit is contained in:
parent
12bcfaa1cb
commit
19db01bb45
@ -1,3 +1,8 @@
|
||||
2005-03-05 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
|
||||
|
||||
* trans-const.c (gfc_conv_constant_to_tree): Use correct tree
|
||||
type for COMPLEX constants.
|
||||
|
||||
2005-03-04 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
|
||||
|
||||
PR fortran/19673
|
||||
|
@ -316,7 +316,8 @@ gfc_conv_constant_to_tree (gfc_expr * expr)
|
||||
tree imag = gfc_conv_mpfr_to_tree (expr->value.complex.i,
|
||||
expr->ts.kind);
|
||||
|
||||
return build_complex (NULL_TREE, real, imag);
|
||||
return build_complex (gfc_typenode_for_spec (&expr->ts),
|
||||
real, imag);
|
||||
}
|
||||
|
||||
case BT_CHARACTER:
|
||||
|
Loading…
Reference in New Issue
Block a user