Home My Page Projects Code Snippets Project Openings devtools
Summary Activity Tracker SCM

[#2005] gcc 7.3: ipmosflm COMMON attribute conflicts with SAVE attribute

Date:
2020-02-25 10:32
Priority:
3
State:
Open
Submitted by:
Charles Ballard (ccb63)
Assigned to:
Nobody (None)
branch:
trunk
type:
none
Summary:
gcc 7.3: ipmosflm COMMON attribute conflicts with SAVE attribute

Detailed description
EQUIVALENCE (SPQOD(1),SBGPOD), (SPQOD(2),SBGQOD), (SPQOD(3),SBGOD)
1
Error: COMMON attribute conflicts with SAVE attribute in ‘spqod’ at (1)
mosflm_all_ip_inc_noX.f:96465:38:
Message  ↓
Date: 2020-02-25 10:36
Sender: Charles Ballard

Try removing SAVE statement

Date: 2020-02-25 10:33
Sender: Charles Ballard

from https://github.com/alisw/alidist/issues/1345

The problem comes from the SAVE statement in miface/gmicap.F:51. According to the Fortran 77 standard, "Any variable in EQUIVALENCE, DATA, or SAVE statements is static regardless of any previous AUTOMATIC specification." which makes the SAVE statement redundant and for some reason the new version of the compiler doesn't like it. Commenting this line should be fine for the old and new compiler on all platforms.

No Changes Have Been Made to This Item