From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17123 invoked by alias); 21 Mar 2013 18:21:11 -0000 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 Received: (qmail 17072 invoked by uid 48); 21 Mar 2013 18:21:01 -0000 From: "aldot at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/36282] Spurious warning "asm declaration ignored due to conflict with previous rename" Date: Thu, 21 Mar 2013 18:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldot at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Last reconfirmed CC Ever Confirmed Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-03/txt/msg01474.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D36282 Bernhard Reutner-Fischer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-03-21 CC| |aldot at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #3 from Bernhard Reutner-Fischer 201= 3-03-21 18:21:00 UTC --- Confirmed. Still the same with gcc version 4.7.2 (Debian 4.7.2-5): $ cat <:2:14: warning: conflicting types for built-in function =E2=80=98mem= cpy=E2=80=99 [enabled by default] :3:1: warning: asm declaration ignored due to conflict with previous rename [-Wpragmas] >>From gcc-bugs-return-418034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:30:59 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22806 invoked by alias); 21 Mar 2013 19:30:59 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 22788 invoked by uid 48); 21 Mar 2013 19:30:52 -0000 From: "jed at 59A2 dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56683] New: Function types with different language linkages not distinct Date: Thu, 21 Mar 2013 19:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jed at 59A2 dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-03/txt/msg01475.txt.bz2 Content-length: 1216 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56683 Bug #: 56683 Summary: Function types with different language linkages not distinct Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: jed@59A2.org Section 7.5.1 of C++98 and C++11 states: Two function types with different language linkages are distinct types even if they are otherwise identical. If the types are distinct, then surely we can overload on that basis: extern "C" typedef int (*CPtr)(void); extern "C++" typedef int (*CxxPtr)(void); int Klutz(CPtr f) { return f(); } int Klutz(CxxPtr f) { return f(); } This compiles cleanly with Sun and Cray C++ compilers, but not with GCC, Cl= ang, Intel, MSVC, IBM XL, PathScale, or PGI. $ g++ klutz.cc klutz.cc: In function =E2=80=98int Klutz(CxxPtr)=E2=80=99: klutz.cc:5:5: error: redefinition of =E2=80=98int Klutz(CxxPtr)=E2=80=99 klutz.cc:4:5: error: =E2=80=98int Klutz(CPtr)=E2=80=99 previously defin= ed here >>From gcc-bugs-return-418036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:42:12 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27774 invoked by alias); 21 Mar 2013 19:42:11 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27581 invoked by uid 48); 21 Mar 2013 19:42:05 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/2316] g++ fails to overload on language linkage Date: Thu, 21 Mar 2013 19:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: ABI, accepts-invalid, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-03/txt/msg01477.txt.bz2 Content-length: 471 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jed at 59A2 dot org --- Comment #47 from Andrew Pinski 2013-03-21 19:42:03 UTC --- *** Bug 56683 has been marked as a duplicate of this bug. ***