http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53009
--- Comment #2 from Lorenzo Pistone <blaffablaffa at gmail dot com> 2012-04-16 16:22:04 UTC --- I just tested, the problem happens only if the template arguments of function_proxy are function pointers. More trivial types (int is what I've tested) just work fine