[Patch, Fortran, OOP] PR 46448: [4.6 Regression] symbol `__copy_...' is already defined

Thomas Koenig tkoenig@netcologne.de
Tue Jan 4 08:58:00 GMT 2011


Hi Janus,

> 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 patch!

	Thomas



More information about the Gcc-patches mailing list