[Webkit-unassigned] [Bug 153695] REGRESSION(r195661): [GTK] Scrollbar tests crashing after overlay scrollbar groundwork

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 4 17:02:18 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=153695

--- Comment #13 from Michael Catanzaro <mcatanzaro at igalia.com> ---
I think through std::unique_ptr. A quick test:

#include <memory>

class A
{
public:
  virtual void something() { }
};

class B : public A
{
};

This code triggers -Wdelete-non-virtual-dtor in both GCC and Clang:

int main()
{
  A* a = new B;
  delete a;
}

But this code triggers only -Wnon-virtual-dtor:

int main()
{
  auto a = std::make_unique<B>();
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160305/2503508d/attachment.html>


More information about the webkit-unassigned mailing list