From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13566 invoked by alias); 26 Oct 2014 19:51:30 -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 13542 invoked by uid 48); 26 Oct 2014 19:51:27 -0000 From: "richard at netbsd dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63650]=?UTF-8?Q?=20conflicting=20type=20attributes=20specified=20for=20=E2=80=98virtual?=..' Date: Sun, 26 Oct 2014 20:49: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-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: richard at netbsd 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-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg02035.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63650 --- Comment #5 from Richard PALO --- (In reply to Daniel Kr=C3=BCgler from comment #4) > (In reply to Richard PALO from comment #3) > > I initially replied that there was an error in my original, please > > correct the first three lines to: > > #ifndef HIDDEN > > #define HIDDEN __attribute__((visibility("hidden"))) > > #endif >=20 > This now leads to another error in regard to #endif without #if. >=20 > Please provide a complete code that demonstrates the error. you are kidding, no? here it is complete: --------------->8------------------------------ #ifndef HIDDEN #define HIDDEN __attribute__((visibility("hidden"))) #endif #ifndef CDECL #define CDECL __attribute__((regparm(0),cdecl)) #endif class A=20 { virtual HIDDEN int CDECL foo( void *nok) =3D 0; }; class B : public A { virtual HIDDEN int CDECL foo(void *nok); /* implicitly virtual */ }; class C : public B { int foo(void *nok); /* implicitly virtual */ }; --------------->8------------------------------ >>From gcc-bugs-return-465015-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 26 20:49:19 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2542 invoked by alias); 26 Oct 2014 20:49:18 -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 2513 invoked by uid 48); 26 Oct 2014 20:49:13 -0000 From: "richard at netbsd dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63650]=?UTF-8?Q?=20conflicting=20type=20attributes=20specified=20for=20=E2=80=98virtual?=..' Date: Sun, 26 Oct 2014 21:22: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-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: richard at netbsd 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-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg02036.txt.bz2 Content-length: 637 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63650 --- Comment #6 from Richard PALO --- For that matter, the following is sufficient to reproduce the problem, the rest is mostly to simulate the xulrunner environment that is failing to build. --------------->8------------------------------ #ifndef CDECL #define CDECL __attribute__((regparm(0),cdecl)) #endif class A { virtual int CDECL foo( void *nok) = 0; }; class B : public A { int foo(void *nok); /* implicitly virtual */ }; --------------->8------------------------------ I should perhaps mention that this is on SunOS 5.11 (illumos) i386.