This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44282] GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 May 2010 17:30:37 -0000
- Subject: [Bug c++/44282] GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains
- References: <bug-44282-19238@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pluto at agmk dot net 2010-05-26 17:30 -------
on gcc-4.5 we get this:
$ g++ -Wall test.cpp
test.cpp:9:43: warning: 'fastcall' attribute ignored
test.cpp:18:45: warning: 'fastcall' attribute ignored
test.cpp:18:46: error: redefinition of 'template<class T> void p(T (*)())'
test.cpp:13:20: error: 'template<class T> void p(T (*)())' previously declared
here
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44282