https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92799
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>: https://gcc.gnu.org/g:3512dc0108afbed3bece2e9fa1719fb3ce1d73d9 commit r10-7267-g3512dc0108afbed3bece2e9fa1719fb3ce1d73d9 Author: Martin Sebor <mse...@redhat.com> Date: Wed Mar 18 14:47:29 2020 -0600 PR ipa/92799 - ICE on a weakref function definition followed by a declaration gcc/testsuite/ChangeLog: PR ipa/92799 * gcc.dg/attr-weakref-5.c: New test. gcc/ChangeLog: PR ipa/92799 * cgraphunit.c (process_function_and_variable_attributes): Also complain about weakref function definitions and drop all effects of the attribute.