This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/46448] [4.6 Regression] [OOP] symbol `__copy_...' is already defined
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Nov 2010 12:54:45 +0000
- Subject: [Bug fortran/46448] [4.6 Regression] [OOP] symbol `__copy_...' is already defined
- Auto-submitted: auto-generated
- References: <bug-46448-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46448
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-11-12 12:49:47 UTC ---
I think you should check whether the symbol is already there using the "gsym"
(assuming that -fwhole-file is used - but I think that can be assumed ;-).
There should be only one such function per translation unit; it should use
everywhere the same decl (UID) and - of course - it should be not exported
('static') such that you can have the same function in multiple translation
units. (Which is ugly - best would be to have only once per program, but I
think the .mod file is emitted before the CLASS is encountered.)