This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Preview: PATCH to overhaul C++ visibility handling


Danny Smith wrote:
class Foo
{
   void bar();
}

void Foo::bar() {};

// A misplaced 'forward declaration' class __attribute__ ((dllimport)) Foo; // warn and ignore?

When not ignored, the dllimport example in particular has caused trouble
in past.

My patch gives an error for this with attribute visibility, but I'll extend it to all attributes.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]