diff options
| author | Steven G. Kargl <kargls@comcast.net> | 2006-03-26 05:20:09 +0000 |
|---|---|---|
| committer | Steven G. Kargl <kargl@gcc.gnu.org> | 2006-03-26 05:20:09 +0000 |
| commit | 6110b776bc55be34d41be51821d6723a94e120c0 (patch) | |
| tree | 3bed4db4af247fc165f3ea184471aa5961edbdbd /gcc/fortran/intrinsic.c | |
| parent | 0853054e96b9be76be424b0bdde28a54305fdd60 (diff) | |
| download | gcc-6110b776bc55be34d41be51821d6723a94e120c0.zip gcc-6110b776bc55be34d41be51821d6723a94e120c0.tar.gz gcc-6110b776bc55be34d41be51821d6723a94e120c0.tar.bz2 | |
re PR fortran/26816 ([4.1 only] FLOAT Intrinsic does not work with Integer Halfword input)
PR fortran/26816
* intrinsic.c (add_functions): Allow FLOAT to accept all integer kinds.
* intrinsic.texi: Document FLOAT.
* gfortran.dg/float_1.f90: New test.
From-SVN: r112392
Diffstat (limited to 'gcc/fortran/intrinsic.c')
| -rw-r--r-- | gcc/fortran/intrinsic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/intrinsic.c b/gcc/fortran/intrinsic.c index 56f92a2..707fe5b 100644 --- a/gcc/fortran/intrinsic.c +++ b/gcc/fortran/intrinsic.c @@ -1899,7 +1899,7 @@ add_functions (void) a, BT_UNKNOWN, dr, REQUIRED); add_sym_1 ("float", 1, 0, BT_REAL, dr, GFC_STD_F77, - NULL, gfc_simplify_float, NULL, + gfc_check_i, gfc_simplify_float, NULL, a, BT_INTEGER, di, REQUIRED); add_sym_1 ("sngl", 1, 0, BT_REAL, dr, GFC_STD_F77, |
