From: Nicolas Koenig Date: Mon, 20 Mar 2017 16:50:00 +0000 (+0000) Subject: re PR fortran/39239 (Reject SAVEd variables EQUIVALENCEd to a COMMON) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8026a5ae9c090029c51657651982603ca6fc381a;p=gcc.git 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 --- 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);