http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59158
Bug ID: 59158 Summary: stdcall function as template parameter cause assembler error Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: 741911404 at qq dot com a.cpp: void __attribute((stdcall))f1(){} void f2(){} template<typename F> void f(F f){f();} int main(){ f(f1); f(f2); } command: i686-pc-linux-gnu-g++-4.8.2 -Wall -Wextra a.cpp result: /tmp/ccWimXXE.s: Assembler messages: /tmp/ccWimXXE.s:84: Error: symbol `_Z1fIPFvvEEvT_' is already defined