]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/decl.c
re PR fortran/33529 (Non-litteral CHARACTER kind values matching is wrong)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 4 Oct 2007 15:08:14 +0000 (15:08 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 4 Oct 2007 15:08:14 +0000 (15:08 +0000)
commit187de1ed2b3bc56e13db1fda4751d2dd86caf38c
tree2508d1baf30928452ed3c8ece378720e26818a34
parent9e8a67206955a2aa97f77991358c009992b30a95
re PR fortran/33529 (Non-litteral CHARACTER kind values matching is wrong)

PR fortran/33529

* decl.c (match_char_kind): New function.
(match_char_spec): Use match_char_kind.

* gfortran.dg/char_type_len_2.f90: Adjust error message.
* gfortran.dg/char_decl_2.f90: New test.

From-SVN: r129012
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/char_decl_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/char_type_len_2.f90