https://bugs.llvm.org/show_bug.cgi?id=44629
Bug ID: 44629
Summary: Alias template name rejected in explicit destructor
call
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangb...@nondot.org
Reporter: pa...@osa.pri.ee
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
Clang (all versions which I could try) reports a compile error on the explicit
destructor call line:
error: no member named 'B' in 'A<int, int>'
(gcc and msvc accept this code).
template <typename T, typename U>
class A {};
template <typename T>
using B = A<T, int>;
template <typename T>
void foo(B<T>* x) {
// Fails with error: no member named 'B' in 'A<int, int>'
x->~B<T>();
// workaround:
//using BT = B<T>;
//x->~BT();
}
// instantiate foo()
template void foo<int>(B<int>* x);
int main(){}
--
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