http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55721
--- Comment #2 from Steve Ellcey <sje at gcc dot gnu.org> 2012-12-17 18:55:30 UTC --- Thanks for the pointer. Unfortunately, this note also happens when compiling testsuite_abi during the libstdc++ testsuite, that is where I first noticed it. Here is a C++ test case based on testsuite_abi.cc. template<typename _CharT> class basic_string { public: long unsigned int find(const _CharT* __s, long unsigned int __n) const; long unsigned int find(const _CharT* __s) const { return this->find(__s, 1); } }; typedef basic_string<char> string; struct symbol { void init(string& data); }; void symbol::init(string& data) { data.find("FUNC"); }