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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Is this true?

With the following updated C++20 testcase, clang, GCC and MSVC all cause the
static_assert to pass:
#include <type_traits>

template<typename T> concept C = true;

C auto f(C auto) { return 0; }

void g() {
  auto x = f("x");
  static_assert(std::is_same<decltype(x), int>::value);
}

Reply via email to