public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44282] New: GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains
@ 2010-05-26 12:59 vadim dot atlygin at gmail dot com
2010-05-26 13:00 ` [Bug c++/44282] " vadim dot atlygin at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: vadim dot atlygin at gmail dot com @ 2010-05-26 12:59 UTC (permalink / raw)
To: gcc-bugs
When you have function that gets pointer to a function as parameter, it is
possible to overload it based on calling convention of parameter function. But
apparently compiler generate the same signature anyway and assembler complains
about redefinition.
$ g++ test.cpp
/tmp/ccgIM8Ir.s: Assembler messages:
/tmp/ccgIM8Ir.s:103: Error: symbol `_Z1pIvEvPFT_vE' is already defined
--
Summary: GCC allows for function overloading with pointer to
function as parameter based on calling convention but
assembler complains
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vadim dot atlygin at gmail dot com
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44282
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/44282] GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains
2010-05-26 12:59 [Bug c++/44282] New: GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains vadim dot atlygin at gmail dot com
@ 2010-05-26 13:00 ` vadim dot atlygin at gmail dot com
2010-05-26 17:30 ` pluto at agmk dot net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: vadim dot atlygin at gmail dot com @ 2010-05-26 13:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from vadim dot atlygin at gmail dot com 2010-05-26 12:59 -------
Created an attachment (id=20751)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20751&action=view)
isolated test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44282
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/44282] GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains
2010-05-26 12:59 [Bug c++/44282] New: GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains vadim dot atlygin at gmail dot com
2010-05-26 13:00 ` [Bug c++/44282] " vadim dot atlygin at gmail dot com
@ 2010-05-26 17:30 ` pluto at agmk dot net
2010-05-26 17:43 ` vadim dot atlygin at gmail dot com
2010-07-24 23:17 ` [Bug c++/44282] fastcall is not mangled at all pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pluto at agmk dot net @ 2010-05-26 17:30 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/44282] GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains
2010-05-26 12:59 [Bug c++/44282] New: GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains vadim dot atlygin at gmail dot com
2010-05-26 13:00 ` [Bug c++/44282] " vadim dot atlygin at gmail dot com
2010-05-26 17:30 ` pluto at agmk dot net
@ 2010-05-26 17:43 ` vadim dot atlygin at gmail dot com
2010-07-24 23:17 ` [Bug c++/44282] fastcall is not mangled at all pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: vadim dot atlygin at gmail dot com @ 2010-05-26 17:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from vadim dot atlygin at gmail dot com 2010-05-26 17:43 -------
Might be 32/64 bit difference as 64 bit platforms have only one calling
convention.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44282
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/44282] fastcall is not mangled at all
2010-05-26 12:59 [Bug c++/44282] New: GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains vadim dot atlygin at gmail dot com
` (2 preceding siblings ...)
2010-05-26 17:43 ` vadim dot atlygin at gmail dot com
@ 2010-07-24 23:17 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-07-24 23:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2010-07-24 23:17 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |assemble-failure
Known to fail| |4.1.2 4.3.2 4.2.2 4.6.0
Last reconfirmed|0000-00-00 00:00:00 |2010-07-24 23:17:30
date| |
Summary|GCC allows for function |fastcall is not mangled at
|overloading with pointer to |all
|function as parameter based |
|on calling convention but |
|assembler complains |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44282
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-07-24 23:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-26 12:59 [Bug c++/44282] New: GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains vadim dot atlygin at gmail dot com
2010-05-26 13:00 ` [Bug c++/44282] " vadim dot atlygin at gmail dot com
2010-05-26 17:30 ` pluto at agmk dot net
2010-05-26 17:43 ` vadim dot atlygin at gmail dot com
2010-07-24 23:17 ` [Bug c++/44282] fastcall is not mangled at all pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).