[clang] [clang] CTAD: implement the missing IsDeducible constraint for alias templates (PR #89358)
via cfe-commits
cfe-commits at lists.llvm.org
Wed May 8 05:12:10 PDT 2024
================
@@ -190,13 +196,15 @@ template <class T> struct Foo { Foo(T); };
template<class V> using AFoo = Foo<V *>;
template<typename> concept False = false;
-template<False W> using BFoo = AFoo<W>;
+template<False W>
+using BFoo = AFoo<W>; // expected-note {{candidate template ignored: constraints not satisfied [with V = int]}} \
+ // expected-note {{because '__is_deducible(BFoo, Foo<int *>)' evaluated to false}} \
----------------
cor3ntin wrote:
I certainly think it's not a good user-facing diagnostic, and i don't think the fix would be difficult
but doing it separately seems reasonable. WDYT @AaronBallman?
https://github.com/llvm/llvm-project/pull/89358
More information about the cfe-commits
mailing list