diff options
author | Janus Weil <janus@gcc.gnu.org> | 2011-09-13 20:37:33 +0200 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2011-09-13 20:37:33 +0200 |
commit | 94c4133ab492acbebe8bb603175b155e7b4ead3a (patch) | |
tree | 16051cebdf05c092a764341cf7620d8571108668 /gcc/fortran/symbol.c | |
parent | d9930d55ad31d35abe3a3a1b2d2c4a8b677ed4a9 (diff) | |
download | gcc-94c4133ab492acbebe8bb603175b155e7b4ead3a.zip gcc-94c4133ab492acbebe8bb603175b155e7b4ead3a.tar.gz gcc-94c4133ab492acbebe8bb603175b155e7b4ead3a.tar.bz2 |
re PR fortran/50379 (ICE in gfc_typenode_for_spec at fortran/trans-types.c)
2011-09-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/50379
* symbol.c (check_conflict): Check conflict between GENERIC and RESULT
attributes.
2011-09-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/50379
* gfortran.dg/result_2.f90: New.
From-SVN: r178829
Diffstat (limited to 'gcc/fortran/symbol.c')
-rw-r--r-- | gcc/fortran/symbol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index ce4ab3d..b2f0f2b 100644 --- a/gcc/fortran/symbol.c +++ b/gcc/fortran/symbol.c @@ -373,7 +373,7 @@ check_conflict (symbol_attribute *attr, const char *name, locus *where) *volatile_ = "VOLATILE", *is_protected = "PROTECTED", *is_bind_c = "BIND(C)", *procedure = "PROCEDURE", *asynchronous = "ASYNCHRONOUS", *codimension = "CODIMENSION", - *contiguous = "CONTIGUOUS"; + *contiguous = "CONTIGUOUS", *generic = "GENERIC"; static const char *threadprivate = "THREADPRIVATE"; const char *a1, *a2; @@ -490,8 +490,6 @@ check_conflict (symbol_attribute *attr, const char *name, locus *where) conf (in_common, codimension); conf (in_common, result); - conf (dummy, result); - conf (in_equivalence, use_assoc); conf (in_equivalence, codimension); conf (in_equivalence, dummy); @@ -503,7 +501,9 @@ check_conflict (symbol_attribute *attr, const char *name, locus *where) conf (in_equivalence, allocatable); conf (in_equivalence, threadprivate); + conf (dummy, result); conf (entry, result); + conf (generic, result); conf (function, subroutine); |