From 3b05bdba5ad007d21c8b605d0a6a5beaf847f89c Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 17 May 2010 18:45:21 +0000 Subject: Teach ASTContext::getUnqualifiedArrayType() how to look through typedefs. As a drive-by, teach hit how to build VLA types, since those will eventually be supported in C++. llvm-svn: 103958 --- clang/test/SemaCXX/references.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'clang/test/SemaCXX/references.cpp') diff --git a/clang/test/SemaCXX/references.cpp b/clang/test/SemaCXX/references.cpp index e40ea01a9b9..a7aafe41c39 100644 --- a/clang/test/SemaCXX/references.cpp +++ b/clang/test/SemaCXX/references.cpp @@ -115,3 +115,18 @@ void test10() { int &c = ev.x; // expected-error{{non-const reference cannot bind to vector element}} const int &d = ev.x; } + +namespace PR7149 { + template struct X0 + { + T& first; + X0(T& p1) : first(p1) { } + }; + + + void f() + { + int p1[1]; + X0< const int[1]> c(p1); + } +} -- cgit v1.2.3