| Issue |
53368
|
| Summary |
Bogus unique_ptr-to-shared_ptr conversions should be forbidden
|
| Labels |
bug,
libc++
|
| Assignees |
|
| Reporter |
CaseyCarter
|
Every converting construction/assignment from `unique_ptr` to `shared_ptr` in https://godbolt.org/z/drYoErG6v should fail. The problematic cases are:
* construction/assignment to `shared_ptr<T>` from `unique_ptr<T[]>`, and
* construction/assignment to `shared_ptr<base[]>` from `unique_ptr<derived[]>`
both of which fail the "`Y*` is compatible with `T*`" constraint.
(Related: https://reviews.llvm.org/D117996)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs