------- Comment #3 from roger dot ferrer at bsc dot es 2010-08-27 15:46 ------- (In reply to comment #2) > (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?
Yes it was a typo, sorry. Even if fixed, though, g++ 4.4 does not compile it. Anyway if 4.5 and 4.6 accept such code I guess this is already fixed in forthcoming releases, right? Maybe the PR should be closed as fixed. Anyway, using the double-cast workaround g++ 4.4 does link. Thanks -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45428