From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22741 invoked by alias); 2 Jan 2012 00:19:02 -0000 Received: (qmail 22731 invoked by uid 22791); 2 Jan 2012 00:19:02 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Jan 2012 00:18:49 +0000 From: "marc.glisse at normalesup dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/2316] g++ fails to overload on language linkage Date: Mon, 02 Jan 2012 00:19: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: marc.glisse at normalesup dot 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: Attachment #25181 is obsolete 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 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: 2012-01/txt/msg00042.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316 Marc Glisse changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #25181|0 |1 is obsolete| | --- Comment #35 from Marc Glisse 2012-01-02 00:18:19 UTC --- Created attachment 26214 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26214 remember linkage of a function type (4) I updated the patch to work with alias templates. I also hacked the library enough to complete a --disable-bootstrap --enable-languages=c,c++ build. It works well enough to play with it and see how buggy every code out there is... I didn't implement conversions, -fpermissive or C casts are good enough as long as this is just a toy.