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


http://gcc.gnu.org/ml/gcc-patches/2006-06/msg01376.html
2006-06-25  Jason Merrill  <jason@redhat.com>
	* cp/parser.c
	(cp_parser_elaborated_type_specifier): Apply attributes if this
	 declares only the class.

What about adding a new attribute in a redeclaration of a class that has
been completely defined.

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.

Danny  


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