[Bug fortran/53175] [4.8 Regression] link failure for private module variables used in function specification

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 2 17:16:00 GMT 2012


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 ;-)



More information about the Gcc-bugs mailing list