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: unassig...@gcc.gnu.org ReportedBy: bur...@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.