https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124173

            Bug ID: 124173
           Summary: [16 Regression] template argument
                    deduction/substitution failed: candidate 1:
                    ‘template<std::nullptr_t <anonymous> > void f()`
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dhruvc at gcc dot gnu.org
  Target Milestone: ---

Testcase:

===
#include <cstddef>

template <std::nullptr_t> void f();

int main() {
  constexpr std::nullptr_t t = nullptr;
  f<t>();
}
===

Compilation options: -std=c++11 (or -std=c++14)

Notably works with -std=c++17 and above.

Reply via email to