re PR fortran/36275 ([F03] Binding label can be any scalar char initialisation expres...
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 29 Jun 2014 14:14:16 +0000 (14:14 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 29 Jun 2014 14:14:16 +0000 (14:14 +0000)
commit3b37ccd4ff94fb1ea6cf33b75e583c66874ab862
tree412eee3cabd54ee810c7b511d6db1d6f6df41d5f
parent516a84f7c0fef97317781cab65213ceef7d696df
re PR fortran/36275 ([F03] Binding label can be any scalar char initialisation expression)

PR fortran/36275
PR fortran/38839

* decl.c (check_bind_name_identifier): New function.
(gfc_match_bind_c): Match any constant expression as binding
label.
* match.c (gfc_match_name_C): Remove.

* gfortran.dg/binding_label_tests_2.f03: Adjust error messages.
* gfortran.dg/binding_label_tests_27.f90: New file.

From-SVN: r212123
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/binding_label_tests_2.f03
gcc/testsuite/gfortran.dg/binding_label_tests_27.f90 [new file with mode: 0644]