re PR fortran/35724 (Compile time segmentation fault for CSHIFT with negative third arg)
2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/35724 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for optional argument attribute. From-SVN: r134376
This commit is contained in:
parent
8a75a0e539
commit
554ef0273f
@ -1,3 +1,9 @@
|
||||
2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR fortran/35724
|
||||
* iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
|
||||
optional argument attribute.
|
||||
|
||||
2008-04-16 Paul Thomas <pault@gcc.gnu.org>
|
||||
|
||||
PR fortran/35932
|
||||
|
@ -738,7 +738,8 @@ gfc_resolve_eoshift (gfc_expr *f, gfc_expr *array, gfc_expr *shift,
|
||||
|
||||
if (dim != NULL)
|
||||
{
|
||||
if (dim->expr_type != EXPR_CONSTANT && dim->symtree->n.sym->attr.optional)
|
||||
if (dim->expr_type != EXPR_CONSTANT && dim->symtree != NULL
|
||||
&& dim->symtree->n.sym->attr.optional)
|
||||
{
|
||||
/* Mark this for later setting the type in gfc_conv_missing_dummy. */
|
||||
dim->representation.length = shift->ts.kind;
|
||||
|
Loading…
Reference in New Issue
Block a user