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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-05-13
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=67960
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Testcase reduced from the attached tar file (we don't need an archive
containing compiled binaries);

class myclass{
private:
    int a=0;
public:
    [[deprecated("deprecated")]]
    void deprecate_function() { }
    [[deprecated("deprecated the static")]]
    static void static_deprecate() { }

};

int main()
{
    myclass v;
    v.deprecate_function();
    myclass::static_deprecate();
    v.static_deprecate();
}


This got worse with GCC 8, so is related to PR 67960.

Reply via email to