This is the mail archive of the gcc-bugs@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]

snapshot 20010514: dllexport and C++ constructors


G++ snapshot 20010514 ignores dllexport for C++ constructors:

//////////////////////////////////////////////////////////////////////////////
class foo
{
public:
  foo ();
  void bar ();
};

__attribute__((dllexport)) foo::foo() { }
__attribute__((dllexport)) void foo::bar () { }
//////////////////////////////////////////////////////////////////////////////

foo::bar() will be exported, foo::foo() won't.  This problem occurs
both for --target=arm-epoc-pe and --target=i686-pc-cygwin, on a
i686-pc-linux-gnu host.

--
  Eberhard Mattes


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