Patch by Stephen Crane!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220122
91177308-0d34-0410-b5e6-
96231b3b80d8
} break;
case TemplateArgument::Declaration: {
const ValueDecl *D = TA.getAsDecl();
- QualType T = TA.getParamTypeForDecl();
+ QualType T = TA.getParamTypeForDecl().getDesugaredType(CGM.getContext());
llvm::DIType TTy = getOrCreateType(T, Unit);
llvm::Value *V = nullptr;
// Variable pointer template parameters have a value that is the address
void f();
};
-template<typename T, T, const int *x, int foo::*a, void (foo::*b)(), void (*f)(), int ...Is>
+typedef int foo::*foo_mem;
+
+template<typename T, T, const int *x, foo_mem a, void (foo::*b)(), void (*f)(), int ...Is>
struct TC {
struct nested {
};