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

            Bug ID: 40923
           Summary: Wrapper std::any not copy constructible
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Following is a reduction of an MSVC usage.

Following code compiles with GGC/MSVC, not with clang:
https://gcc.godbolt.org/z/ii2e2E

t.cpp
=====

#include <any>
#include <type_traits>

struct V
{
    V(std::any a) : a{a} {}
    ~V() = default;

    V(const V &) = default;

    std::any a;
};

static_assert(std::is_copy_constructible_v<V>);

run.sh
======
clang++ -O0  -std=c++17 -w -Wunused-variable t.cpp

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to