This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33310] Bind(C): Accepts PARAMETER with BIND(C) attribute
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2007 11:15:49 -0000
- Subject: [Bug fortran/33310] Bind(C): Accepts PARAMETER with BIND(C) attribute
- References: <bug-33310-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2007-09-05 11:15 -------
"The BIND statement specifies the BIND attribute (5.1.2.4) for a list of
variables and common blocks."
and
"The BIND attribute for a variable or common block specifies that it is capable
of interoperating with a C variable that has external linkage (15.3)."
I would argue that a symbol with a PARAMETER attribute is not a "variable" but
a "named constant" and thus BIND(C) is invalid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33310