This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49605] -Wdelete-non-virtual-dtor is not picky enough


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49605

--- Comment #3 from miles at gnu dot org 2011-07-01 13:25:23 UTC ---
Here's another test case which is closer to the real code that prompted this
bug report:

    struct X
    {
      ~X ();
      virtual void meth () = 0;
    };

    struct Y : X
    {
      ~Y ();
      virtual void meth ();
    };

    void d ()
    {
      Y y;
    }

Thanks,

-miles


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]