[llvm-bugs] [Bug 40006] dllexport on constructors with in-class initializers causes error

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 15 12:21:28 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=40006

Lambert Clara <lambert.clara at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #10 from Lambert Clara <lambert.clara at yahoo.fr> ---
Hello!

Thanks for the change, unfortunately it only solve the use case I pasted, which
doesn't cover all of them :(

Here is a snipped that still exhibits the problem:

template<typename T>
class Arr
{
    T* m_data;
};

struct Object
{
    struct SubObject
    {
        __declspec(dllexport) SubObject() = default;
        unsigned int m_value {0};
    };
    Arr<SubObject> array;
};

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190815/eb279430/attachment.html>


More information about the llvm-bugs mailing list