Preview: PATCH to overhaul C++ visibility handling
Danny Smith
dannysmith@clear.net.nz
Mon Jun 26 03:10:00 GMT 2006
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
More information about the Gcc-patches
mailing list