Bug 54578 - [OOP] -Wunused-function warnings for __copy functions
[OOP] -Wunused-function warnings for __copy functions
Status: RESOLVED FIXED
Product: gcc
Classification: Unclassified
Component: fortran
4.8.0
: P3 normal
: ---
Assigned To: Not yet assigned to anyone
: diagnostic
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-14 07:58 UTC by Tobias Burnus
Modified: 2013-08-19 21:07 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Burnus 2012-09-14 07:58:43 UTC
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.
Comment 1 janus 2013-08-19 21:07:55 UTC
I think this may have been fixed by r192620.