https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81180
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- I don't think this is a regression, because class template argument deduction wasn't supported before r240756 - it's a new C++17 feature.