[Bug c++/48078] gcc accepts-invalid: taking address of private member function from template function

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 11 10:52:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48078

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-11 10:35:28 UTC ---
I've just hit another variation of this bug myself.

Reduced:

class F {
  void f();
};

template<typename>
void b() {
    (void) &F::f;
}

template void b<int>();



More information about the Gcc-bugs mailing list