This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53175] [4.8 Regression] link failure for private module variables used in function specification
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 May 2012 17:15:33 +0000
- Subject: [Bug fortran/53175] [4.8 Regression] link failure for private module variables used in function specification
- Auto-submitted: auto-generated
- References: <bug-53175-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53175
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-05-02 17:15:33 UTC ---
As I have not clearly mentioned it before, there exist the following
workarounds:
a) Make "dim" *not* PRIVATE. ("dim" can be marked as PROTECTED to avoid
unwanted changes.) That might be easier for the real world code than
concatenating files together.
b) Put MODULE ENERGY_FUNCTION into the same file as all the callers of its
functions. (For completeness.)
b) Compile "MODULE ENERGY_FUNCTION" with -O0.
c) Use GCC 4.7 and wait for the patch ;-)