[Bug c++/124173] [16 Regression] template argument deduction/substitution failed: candidate 1: ‘template<std::nullptr_t <anonymous> > void f()`
dhruvc at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 20 04:32:40 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124173
--- Comment #2 from Dhruv Chawla <dhruvc at gcc dot gnu.org> ---
Forgot to post the output:
>> ../install/bin/g++ test.cpp -std=c++14
test.cpp: In function ‘int main()’:
test.cpp:7:7: error: no matching function for call to ‘f<t>()’
7 | f<t>();
| ~~~~^~
• there is 1 candidate
• candidate 1: ‘template<std::nullptr_t <anonymous> > void f()’
test.cpp:3:32:
3 | template <std::nullptr_t> void f();
| ^
• template argument deduction/substitution failed:
More information about the Gcc-bugs
mailing list