[all-commits] [llvm/llvm-project] 88b78b: [libc++] Short-cut constraints of single-argument ...
A. Jiang via All-commits
all-commits at lists.llvm.org
Fri Feb 6 01:20:28 PST 2026
Branch: refs/heads/release/22.x
Home: https://github.com/llvm/llvm-project
Commit: 88b78bcec6676b24ced83d684467a34133d63659
https://github.com/llvm/llvm-project/commit/88b78bcec6676b24ced83d684467a34133d63659
Author: A. Jiang <de34 at live.cn>
Date: 2026-02-06 (Fri, 06 Feb 2026)
Changed paths:
M libcxx/include/any
M libcxx/test/std/utilities/any/any.class/any.cons/value.pass.cpp
Log Message:
-----------
[libc++] Short-cut constraints of single-argument `any` constructor (#177082)
When a default template argument of a function template uses
`std::is_copy_constructible<T>::value` and `T` is convertible from and
to `any`, the changes in 21dc73f6a46cd786394f10f5aef46ec4a2d26175 would
introduce constraint meta-recursion when compiling with Clang.
This patch short-cuts constraints of the related constructor to avoid
computing `is_copy_constructible<T>` when `decay_t<T>` is `any`, which
gets rid of constraint meta-recursion in the overload resolution of copy
construction of `T`.
Fixes #176877.
(cherry picked from commit aa5428864e86f8e38806fc92d14cadc68b3d0667)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list