This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/54578] New: [OOP] -Wunused-function warnings for __copy functions
- 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, 14 Sep 2012 07:58:43 +0000
- Subject: [Bug fortran/54578] New: [OOP] -Wunused-function warnings for __copy functions
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54578
Bug #: 54578
Summary: [OOP] -Wunused-function warnings for __copy functions
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: burnus@gcc.gnu.org
Compiling the test case at PR 46897 with -Wall shows the bogus warning:
warning: â__copy_component_parent_child_module_Childâ defined but not used
[-Wunused-function]
I wonder whether one should use "!sym->attr.artificial" to silence the warning
or whether some other approach is better.
See also similar warnings (but for user code, where the function is actually
used) at PR 54221.