public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2796] Fortran: ICE with automatic character object, save, and various options
@ 2021-08-07 18:31 Harald Anlauf
  0 siblings, 0 replies; only message in thread
From: Harald Anlauf @ 2021-08-07 18:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cd754efa9a5349c693919046b8be074395ea114e

commit r12-2796-gcd754efa9a5349c693919046b8be074395ea114e
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sat Aug 7 20:30:32 2021 +0200

    Fortran: ICE with automatic character object, save, and various options
    
    gcc/fortran/ChangeLog:
    
            PR fortran/68568
            * primary.c (gfc_expr_attr): Variable attribute can only be
            inquired when symtree is non-NULL.

Diff:
---
 gcc/fortran/primary.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c
index 9fe8d1ee20c..56a78d6f89f 100644
--- a/gcc/fortran/primary.c
+++ b/gcc/fortran/primary.c
@@ -2779,7 +2779,7 @@ gfc_expr_attr (gfc_expr *e)
 	       && e->value.function.isym->transformational
 	       && e->ts.type == BT_CLASS)
 	attr = CLASS_DATA (e)->attr;
-      else
+      else if (e->symtree)
 	attr = gfc_variable_attr (e, NULL);
 
       /* TODO: NULL() returns pointers.  May have to take care of this


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-07 18:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-07 18:31 [gcc r12-2796] Fortran: ICE with automatic character object, save, and various options Harald Anlauf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).