From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3419 invoked by alias); 14 Jan 2013 17:46:20 -0000 Received: (qmail 2996 invoked by uid 48); 14 Jan 2013 17:45:48 -0000 From: "tmsriram at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55742] [4.8 regression] __attribute__ in class function declaration cause "prototype does not match" errors. Date: Mon, 14 Jan 2013 17:46: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: tmsriram at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: 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: 2013-01/txt/msg01206.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55742 --- Comment #13 from Sriraman Tallam 2013-01-14 17:45:42 UTC --- (In reply to comment #12) > (In reply to comment #10) > > Either use a different name of the attribute (replace target with mv_target or > > whatever), or require a new attribute (mv?) to be present for multi-versioning > > (mv attribute on any of the decls would enable it, if mv attribute isn't > > present on either of the two decls being merged, then the target attribute is > > merged as before 4.8). > > > I like this proposal: I too like just using a different attribute name. I will prepare a patch asap for this. Thanks Sri. > > >require a new attribute (mv?) to be present for multi-versioning > > (mv attribute on any of the decls would enable it, if mv attribute isn't > > present on either of the two decls being merged, then the target attribute is > > merged as before 4.8) > > > David