https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69300
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-01-18 Ever confirmed|0 |1 Known to fail| |5.3.0, 6.0 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. Rejected by 4.9. t.C: In function ‘int main(int, char**)’: t.C:8:26: error: cannot resolve overloaded function ‘f’ based on conversion to type ‘bool’ F<void>().f<int>(); ^ t.C: In instantiation of ‘void F<A>::f() && [with B = int; A = void]’: t.C:8:26: required from here t.C:4:19: error: cannot resolve overloaded function ‘f’ based on conversion to type ‘bool’ void f() && noexcept(&F::template f<B>) {} ^