diff options
author | Harald Anlauf <anlauf@gmx.de> | 2022-07-28 22:07:02 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2022-07-31 20:43:17 +0200 |
commit | d325e7048c85e13f12ea79aebf9623eddc7ffcaf (patch) | |
tree | 26f8ad6d7eab9e87f0feaa4767e672969e0b10f5 /gcc/c | |
parent | 0110cfd5449bae3a772f45ea2e4c5dab5b7a8ccd (diff) | |
download | gcc-d325e7048c85e13f12ea79aebf9623eddc7ffcaf.zip gcc-d325e7048c85e13f12ea79aebf9623eddc7ffcaf.tar.gz gcc-d325e7048c85e13f12ea79aebf9623eddc7ffcaf.tar.bz2 |
Fortran: detect blanks within literal constants in free-form mode [PR92805]
gcc/fortran/ChangeLog:
PR fortran/92805
* match.cc (gfc_match_small_literal_int): Make gobbling of leading
whitespace optional.
(gfc_match_name): Likewise.
(gfc_match_char): Likewise.
* match.h (gfc_match_small_literal_int): Adjust prototype.
(gfc_match_name): Likewise.
(gfc_match_char): Likewise.
* primary.cc (match_kind_param): Match small literal int or name
without gobbling whitespace.
(get_kind): Do not skip over blanks.
(match_string_constant): Likewise.
gcc/testsuite/ChangeLog:
PR fortran/92805
* gfortran.dg/literal_constants.f: New test.
* gfortran.dg/literal_constants.f90: New test.
Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions