-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
c++23clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrash-on-validregression:19Regression in 19 releaseRegression in 19 release
Description
The following code fails with code 139:
template<class Base, template<class...> class S>
inline auto create_unique(auto&&... args) -> std::unique_ptr<Base>
requires(std::derived_from<std::remove_cvref_t<decltype(S{std::forward<decltype(args)>(args)...})>, Base>)
{
using Type = std::remove_cvref_t<decltype(S{std::forward<decltype(args)>(args)...})>;
return std::make_unique<Type>(std::forward<decltype(args)>(args)...);
}
removing constraint, code compiles. Full demo in Code Explorer,
Metadata
Metadata
Assignees
Labels
c++23clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrash-on-validregression:19Regression in 19 releaseRegression in 19 release
Type
Projects
Status
Done