]> git.ipfire.org Git - thirdparty/gcc.git/commit
Character typenames in errors and warnings
authormarkeggleston <markeggleston@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Oct 2019 09:40:23 +0000 (09:40 +0000)
committermarkeggleston <markeggleston@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Oct 2019 09:40:23 +0000 (09:40 +0000)
commitc2826a7d5e42da062352f745e38e1028a6e54244
tree522705254b54086a43db1ff08a986353ea587ff9
parenta7edcc5594358f27055defbb1712711d51d36fdd
Character typenames in errors and warnings

Character type names now incorporate length, kind is only shown if
the default character is not being used.

Examples:

  character(7) is reported as CHARACTER(7)
  character(len=20,kind=4) is reported as CHARACTER(20,4)

dummy character variables with assumed length:

  character(*) is reported as CHARACTER(*)
  character(*,kind=4) is reported as CHARACTER(*,4)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276505 138bc75d-0d04-0410-961f-82ee72b054a4
19 files changed:
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/check.c
gcc/fortran/decl.c
gcc/fortran/expr.c
gcc/fortran/gfortran.h
gcc/fortran/interface.c
gcc/fortran/intrinsic.c
gcc/fortran/misc.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bad_operands.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/character_mismatch.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/compare_interfaces.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/hollerith_to_char_parameter_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/hollerith_to_char_parameter_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/widechar_intrinsics_1.f90
gcc/testsuite/gfortran.dg/widechar_intrinsics_2.f90
gcc/testsuite/gfortran.dg/widechar_intrinsics_3.f90