[cfe-users] bug in libc++

Marshall Clow mclow.lists at gmail.com
Wed Oct 2 19:29:11 PDT 2013


On Oct 2, 2013, at 4:56 PM, Manu <monamimani at gmail.com> wrote:

> Hi this simple code is causing compilation error.
> class Foo
> {
> public:
> 
>    Foo(Foo&&) noexcept = default;
>    Foo& operator=(Foo&&) noexcept = default;
> 
>    Foo()
>    {
>    }
> 
> private:
> 
>    std::vector<std::string> vectorFoo_;
> };
> 
> see errors here
> http://coliru.stacked-crooked.com/a/ab2fb522c4982c72
> 
> But if I use libstdc++ it compile fine. So where is the bug libc++ or libstdc++?

Even better - your code crashes the ToT clang.


-- Marshall

Marshall Clow     Idio Software   <mailto:mclow.lists at gmail.com>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20131002/4d7d7159/attachment.html>


More information about the cfe-users mailing list