This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/44282] GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]