https://bugs.llvm.org/show_bug.cgi?id=46856
Bug ID: 46856
Summary: CTAD fails on nested templated class
Product: clang
Version: 10.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++17
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
The following snippet doesn't compile on clang (10), due to CTAD failing. It
occurs when the parent class is templated:
template <class U>
struct X {
template <class T> struct Y {
T y;
Y(T t) : y(t) {}
};
auto test() const {
return Y(10);
}
};
auto test() {
return X<int>().test();
}
The snippet compiles on msvc and gcc:
https://godbolt.org/z/Wq6Paf
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs