https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114013
--- Comment #3 from Enrico Seiler <enrico.seiler+gccbugs at outlook dot com> --- For -O0 and -O1, this also does not link: template <int> int value; template <> inline int value<1>; void bar(int) { bar(value<1>); } https://godbolt.org/z/Wxv7PE8ob