Bug 59158 - stdcall function as template parameter cause assembler error
Summary: stdcall function as template parameter cause assembler error
Status: RESOLVED DUPLICATE of bug 44282
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.8.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-17 07:43 UTC by 741911404
Modified: 2013-11-17 07:57 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 741911404 2013-11-17 07:43:58 UTC
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
Comment 1 Andrew Pinski 2013-11-17 07:57:50 UTC
Dup of bug 44282.

*** This bug has been marked as a duplicate of bug 44282 ***