https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104634
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Keywords| |link-failure Last reconfirmed| |2022-02-22 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed, template <class T1, class T2> constexpr bool type_same = false; template<class T1> constexpr bool type_same<T1, T1> = true; template <typename T1, typename T2> concept same_as = type_same<T1, T2>; template<typename T> struct Struct { static void func1(){} }; template<same_as<int> T> struct Struct<T> { static void func3() {} }; template<same_as<double> T> struct Struct<T> { static void func2() {} }; template struct Struct<int>; template struct Struct<double>; ----- CUT ---- The function is in .original so maybe it is not being marked as used ....