Error: Syntax error in EQUIVALENCE statement at (1)
Andrew F. Nelson via fortran
fortran@gcc.gnu.org
Tue Jan 29 18:57:00 GMT 2019
On 1/29/19 11:34 AM, Steve Kargl wrote:
> On Tue, Jan 29, 2019 at 11:09:41AM -0700, Andrew F. Nelson via fortran wrote:
>> On 1/29/19 10:59 AM, Steve Kargl wrote:
>>> On Tue, Jan 29, 2019 at 10:41:18AM -0700, Andrew F. Nelson via fortran wrote:
>>>> There are examples of the variables in the use statement that
>>>> have equivalences, but if I remove those equivalences and the
>>>> equivalenced variables entirely, the error still triggers. So
>>>> I conclude the error has nothing to do with an actual
>>>> equivalence.
>>>
>>> This sounds like a dependency issue during recompilation. Did
>>> you remove all old *.mod files that depend on the module which
>>> had the EQUIVALENCE statements?
>>>
>>
>> Yes. I have done various sorts of 'make clean' incantations in
>> between changes. Not only that, but I'm not the only one who has
>> been working on this error resolution...others get the same
>> error at the same place.
>>
>
> I think we'll need to see the code to help.
>
Sigh. Probably take me a week to cut the code down so far that I could
give something out. I know that 'seeing the code' is a basic first step
and not being able to do that really bites into any ability to diagnose
though, so I understand.
> Have you passed your code through other compilers (eg, Intel, PGI, NAG)?
>
Yes. It compiles fine under intel and xlf (many versions over the years).
In reference to your other comment about the error pointer being misplaced
(not pointing at a specific variable), I have tried limiting the use
statement to a single variable as:
use the_module, only : var
for each of the variables in the use line one at a time. They all trigger
the same error.
The trouble with the error message that I'm having is that it implicates
an equivalence of some sort, but there is no equivalencing going on that
I can see. Can you speculate on what gcc defines as an equivalence or
equivalence problem that is so much more general/different than other compilers?
I've tried turning up warning reporting, but nothing pops out there either.
Thanks,
Andy
More information about the Fortran
mailing list