re PR fortran/35059 (Seg fault when max constructor limit reached)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 29 Feb 2008 22:50:25 +0000 (22:50 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 29 Feb 2008 22:50:25 +0000 (22:50 +0000)
commit44000dbbe05896777b4781f5c274272c15097861
tree6b8d4f59dabb468ef7b4fe96a4195f38a77e215b
parentc17ee676e55b86d2c9d61b569a8c7e0cd8fb6d4c
re PR fortran/35059 (Seg fault when max constructor limit reached)

2008-02-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/35059
* expr.c (find_array_element): Modify traversing the constructor to
avoid trying to access NULL memory pointed to by next for the
last element. (find_array_section): Exit while loop if cons->next is
NULL.
* trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
(gfc_conv_function_call): Same.
* decl.c (gfc_match_implicit): Same.
* trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.

From-SVN: r132782
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/expr.c
gcc/fortran/trans-expr.c
gcc/fortran/trans-intrinsic.c