From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11810 invoked by alias); 26 May 2010 12:59:06 -0000 Received: (qmail 11773 invoked by uid 48); 26 May 2010 12:58:56 -0000 Date: Wed, 26 May 2010 12:59:00 -0000 Subject: [Bug c++/44282] New: GCC allows for function overloading with pointer to function as parameter based on calling convention but assembler complains X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "vadim dot atlygin at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg02923.txt.bz2 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