https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110323
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> --- I noticed we emit the function if we turn it into a non-member: #include <type_traits> constexpr int VAL = 1; template <int B> void bar(typename std::conditional<B==VAL, int, float>::type arg) { } template void bar<1>(int arg); I wonder why this bug seems specific to member functions?