Issue 53021
Summary std::unique_ptr<Foo> is not regarded as Standard Layout since 12.0.1
Labels new issue
Assignees
Reporter RAOF
    The following code compiles on clang 12.0.0 and earlier, but fails to compile as `std::is_standard_layout<std::unique_ptr<int>>::value` evaluates to `false` on 12.0.1 and later - at least on godbolt: https://godbolt.org/z/nqvoMvs6d
```
#include <memory>
#include <type_traits>

static_assert(
    std::is_standard_layout<std::unique_ptr<int>>::value,
    "unique_ptr<int> isn't standard layout?");
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to