<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - REGRESSION(r195661): [GTK] Scrollbar tests crashing after overlay scrollbar groundwork"
href="https://bugs.webkit.org/show_bug.cgi?id=153695#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - REGRESSION(r195661): [GTK] Scrollbar tests crashing after overlay scrollbar groundwork"
href="https://bugs.webkit.org/show_bug.cgi?id=153695">bug 153695</a>
from <span class="vcard"><a class="email" href="mailto:mcatanzaro@igalia.com" title="Michael Catanzaro <mcatanzaro@igalia.com>"> <span class="fn">Michael Catanzaro</span></a>
</span></b>
<pre>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>();
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>