void func(const std::string& str) { str.method(); // expected-note {{in instantiation of member function}} }