2004-01-23 Paul Brook <paul@codesourcery.com>
commitd99109cb90f9a5c0078d05f7ae439aecafbb678f
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Jan 2005 22:29:41 +0000 (23 22:29 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Jan 2005 22:29:41 +0000 (23 22:29 +0000)
tree482560991382bf4a800f1c23734d475bd99bc65d
parent78a1d03f08ec1ef47f8f8add8871ebae6435c6ba
2004-01-23  Paul Brook  <paul@codesourcery.com>
Steven G. Kargl  <kargls@comcast.net>

PR fortran/17941
* arith.c (gfc_convert_real): Remove sign handling.
* primary.c (match_digits): Allow whitespace after initial sign.
(match_real_const): Handle signs here.  Allow whitespace after
initial sign.  Remove dead code.
(match_const_complex_part): Remove.
(match_complex_part): Use match_{real,integer}_const.
(match_complex_constant): Cross-promote integer types.
testsuite/
* gfortran.dg/real_const_1.f: New test.
* gfortran.dg/real_const_2.f90: New test.
* gfortran.dg/complex_int_1.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94127 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/complex_int_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/real_const_1.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/real_const_2.f90 [new file with mode: 0644]