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------------------------------

Reply via email to