[Bug c++/89325] [7/8/9 Regression] False warnings about "optimization attribute" on operators when -fno-ipa-cp-clone

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 12 09:40:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |nathan at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Doesn't look like hidden to me, I'd say that r265744 has been the right fix for
this.  The diagnose_mismatched_attributes has been simply placed way too early,
before we check if the two decls actually shouldn't be merged because they have
different arguments (and not extern "C").
I'd say we should just say this is fixed for 9 and decide how to fix on release
branches.
Let me prepare a patch with some testcases for trunk.


More information about the Gcc-bugs mailing list