------- Comment #2 from redi at gcc dot gnu dot org 2010-08-27 15:21 ------- (In reply to comment #1) > (In reply to comment #0) > > (void(*)(void)) my_fun<_T> // This is test.cpp:22 > > Can I assume you meant to case to (void(*)(void*)) here?
With that change 4.5 and 4.6 compile the code, but don't link -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45428