This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32986] Improve diagnostic message for COMMON with automatic object
- From: "afhoffie at ncsu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Jun 2011 23:02:27 +0000
- Subject: [Bug fortran/32986] Improve diagnostic message for COMMON with automatic object
- Auto-submitted: auto-generated
- References: <bug-32986-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32986
--- Comment #2 from afhoffie at ncsu dot edu 2011-06-20 23:02:09 UTC ---
Dear Sir or Madam,
I am trying to define an array index variable but also an allocatable array
in my fortran subroutine as a common object. This object is defined as a
global variable in C++ with extern"C"{struct{}name_;}. However, the gfortran
compiler tells me: "Error: variable in this context must be a constant.
Please see attached files.
Would appreciate any help. Thanks very much.
Best regards,
Andreas Hoffie