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: unassignedclangb...@nondot.org
Reporter: narut...@gmail.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk
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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs