[PATCH] Start adding support for dllimport/dllexport on classes (PR11170)

Hans Wennborg hans at chromium.org
Wed May 28 09:43:30 PDT 2014


On Tue, May 27, 2014 at 11:19 PM, David Majnemer
<david.majnemer at gmail.com> wrote:
> On Tue, May 27, 2014 at 4:51 PM, Richard Smith <richard at metafoo.co.uk>
>> Weird! You get an exported trivial copy assignment but not an exported
>> trivial copy constructor? I guess we'll need to update this once we find out
>> what they do with implicit move operations?
>
>
> Given a struct 'A', they export the following as well:
> public: struct A & __thiscall A::operator=(struct A &&)

What did you use to produce that?

For this code

struct __declspec(dllexport) S {
  void foo() {}
};

using VS2013 update 2, all I get is foo() and the copy assignment operator.



More information about the cfe-commits mailing list