[Bug c++/90505] [9/10 Regression] g++ rejects a valid code

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Aug 17 17:12:00 GMT 2019


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

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Test from 91479:

template <class T> struct foo
{
  template <typename U, typename=void>
  static void bar(const U&) {}

  static void bar(int x) { bar<int>(x); }
};


More information about the Gcc-bugs mailing list