re PR fortran/54730 (ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1066)
authorMikael Morin <mikael@gcc.gnu.org>
Sun, 3 Mar 2013 17:52:02 +0000 (17:52 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Sun, 3 Mar 2013 17:52:02 +0000 (17:52 +0000)
commitd6a5de161587f701089fdafada742cf275ccd7f8
tree542b966e4ddfa5b7b5c9ccf60d29ed08c14b363b
parentcb8a1637a9914fb25bfbc9604fc20ca5e6c0601e
re PR fortran/54730 (ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1066)

fortran/
PR fortran/54730
* array.c (gfc_match_array_constructor): Set a checkpoint before
matching a typespec.  Drop it on success, restore it otherwise.

testsuite/
PR fortran/54730
* gfortran.dg/array_constructor_42.f90: New test.

From-SVN: r196416
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_42.f90 [new file with mode: 0644]