https://bugs.kde.org/show_bug.cgi?id=379669
--- Comment #57 from RJVB <[email protected]> --- (In reply to Matt Whitlock from comment #56) > If you call example(nullptr), you will see 0 printed on stdout. It's only if > bar() is a *virtual* method that invoking it on a null pointer would crash > before reaching the member function body. Well, of course. But again, we're talking about the ctor here, called while creating a local variable: ``` class Foo { public: explicit Foo(void *bar) : m_bar(bar) {} private: void *m_bar; } // ... void clear() { // ... Foo lock(DUChain::lock()); // ... } ``` -- You are receiving this mail because: You are watching all bug changes.
