re PR fortran/39239 (Reject SAVEd variables EQUIVALENCEd to a COMMON)
authorNicolas Koenig <koenigni@gcc.gnu.org>
Mon, 20 Mar 2017 16:50:00 +0000 (16:50 +0000)
committerNicolas Koenig <koenigni@gcc.gnu.org>
Mon, 20 Mar 2017 16:50:00 +0000 (16:50 +0000)
2017-03-12 Nicolas Koenig <koenigni@student.ethz.ch>

PR fortran/39239
* symbol.c (check_conflict): report an error if an EQUIVALENCE variable is BIND(C).

2017-03-12 Nicolas Koenig <koenigni@student.ethz.ch>

PR fortran/39239
* gfortran.dg/equiv_constraint_bind_c.f90: New test.

From-SVN: r246284

gcc/fortran/symbol.c

index fc79d9970cdcaf0cebd81a5ea10aeafff685b5ff..6226bca7bec11c7daf662fca8e3083fae19933ad 100644 (file)
@@ -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);