This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran, OOP] PR 46448: [4.6 Regression] symbol `__copy_...' is already defined
>> One simple alternative that just came to my mind: The whole problem
>> would go away if the __copy_ routine would undergo the same name
>> mangling as all standard module procedures, i.e. getting a prefix like
>> "__m1_" or "__m2_". When looking for the reason, I came up with the
>> attached two-line patch, which seems to fix the issue for both the
>> single-file as well as multi-file setup, and is much simpler than the
>> previous approach (not regtested yet).
>
> this approach looks very good.
>
> OK if it passes regtesting.
Thanks for the review, Thomas. Regtest passed without failures.
I will wait for feedback from Salvatore (who promised to try the patch
on his code) before committing.
Cheers,
Janus