aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/symbol.c
diff options
context:
space:
mode:
authorNicolas Koenig <koenigni@gcc.gnu.org>2017-03-20 16:50:00 +0000
committerNicolas Koenig <koenigni@gcc.gnu.org>2017-03-20 16:50:00 +0000
commit8026a5ae9c090029c51657651982603ca6fc381a (patch)
tree0aa5d00b8b3289d702574f0b293ad3bd3527143f /gcc/fortran/symbol.c
parent801f04e010b85f6f3132476215be3f13e672dd2e (diff)
downloadgcc-8026a5ae9c090029c51657651982603ca6fc381a.zip
gcc-8026a5ae9c090029c51657651982603ca6fc381a.tar.gz
gcc-8026a5ae9c090029c51657651982603ca6fc381a.tar.bz2
re PR fortran/39239 (Reject SAVEd variables EQUIVALENCEd to a COMMON)
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
Diffstat (limited to 'gcc/fortran/symbol.c')
-rw-r--r--gcc/fortran/symbol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c
index fc79d99..6226bca 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);