This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51802] New: Duplicate mangling for OOP symbols
- From: "jb at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 Jan 2012 20:46:53 +0000
- Subject: [Bug fortran/51802] New: Duplicate mangling for OOP symbols
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51802
Bug #: 51802
Summary: Duplicate mangling for OOP symbols
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jb@gcc.gnu.org
Compiling the last example with type-bound procedures at
http://fortranwiki.org/fortran/show/Object-oriented+programming
and looking at the symbols generated in the binary, there is some duplication
of names, making the symbols longer than they need to be. From the "nm -s"
output:
0804869f T __class_circle_MOD___copy_class_circle_Circle
0804a050 B __class_circle_MOD___def_init_class_circle_Circle
0804a028 D __class_circle_MOD___vtab_class_circle_Circle
That is, "class_circle", the name of the module, appears twice.