From 8026a5ae9c090029c51657651982603ca6fc381a Mon Sep 17 00:00:00 2001 From: Nicolas Koenig Date: Mon, 20 Mar 2017 16:50:00 +0000 Subject: [PATCH] re PR fortran/39239 (Reject SAVEd variables EQUIVALENCEd to a COMMON) 2017-03-12 Nicolas Koenig PR fortran/39239 * symbol.c (check_conflict): report an error if an EQUIVALENCE variable is BIND(C). 2017-03-12 Nicolas Koenig PR fortran/39239 * gfortran.dg/equiv_constraint_bind_c.f90: New test. From-SVN: r246284 --- gcc/fortran/symbol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index fc79d9970cd..6226bca7bec 100644 --- a/gcc/fortran/symbol.c +++ b/gcc/fortran/symbol.c @@ -544,6 +544,7 @@ check_conflict (symbol_attribute *attr, const char *name, locus *where) conf (in_equivalence, oacc_declare_copyin); conf (in_equivalence, oacc_declare_deviceptr); conf (in_equivalence, oacc_declare_device_resident); + conf (in_equivalence, is_bind_c); conf (dummy, result); conf (entry, result); -- 2.30.2