http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52887
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-05-10 14:57:02 UTC --- does adding this instantiation to libstdc++-v3/src/c++11/regex.cc help? --- r 2012-05-10 16:56:35.252128466 +0200 +++ regex.cc 2012-05-10 16:56:39.412128415 +0200 @@ -34,5 +34,7 @@ regex_error::~regex_error() throw() { } + template class function<void (__regex::_PatternCursor const&, __regex::_Results&)>; + _GLIBCXX_END_NAMESPACE_VERSION } // namespace std