This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32986] Improve diagnostic message for COMMON with automatic object


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]