[Bug c++/63650]=?UTF-8?Q?=20conflicting=20type=20attributes=20specified=20for=20=E2=80=98virtual?=..'
richard at netbsd dot org
gcc-bugzilla@gcc.gnu.org
Sun Oct 26 20:49:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63650
--- Comment #5 from Richard PALO <richard at netbsd dot org> ---
(In reply to Daniel Krügler 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
>
> This now leads to another error in regard to #endif without #if.
>
> 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
{
virtual HIDDEN int CDECL foo( void *nok) = 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------------------------------
More information about the Gcc-bugs
mailing list