re PR fortran/37199 (array assignment from function writes out of bounds)
authorDaniel Kraft <d@domob.eu>
Mon, 8 Sep 2008 09:17:27 +0000 (11:17 +0200)
committerDaniel Kraft <domob@gcc.gnu.org>
Mon, 8 Sep 2008 09:17:27 +0000 (11:17 +0200)
commit0a991dec381afa2561e106e5f1b0f9d0973bc3e8
treed2b35b25ee4f70d2f8a4bc9b8f0394d80a7f55c5
parent10c17e8fd0cf9fe6471f4841472337364f54b1e1
re PR fortran/37199 (array assignment from function writes out of bounds)

2008-09-08  Daniel Kraft  <d@domob.eu>

PR fortran/37199
* trans-expr.c (gfc_add_interface_mapping): Set new_sym->as.
(gfc_map_intrinsic_function): Added checks against NULL bounds in
array specs.

2008-09-08  Daniel Kraft  <d@domob.eu>

PR fortran/37199
* gfortran.dg/array_function_2.f90: New test.

From-SVN: r140102
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_function_2.f90 [new file with mode: 0644]