From 98137534e612c274ba270af99d73429043957e53 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 10 Mar 2009 18:33:27 +0000 Subject: Add pretty-printing for class template specializations, e.g., 'struct A' In the "template instantiation depth exceeded" message, print "-ftemplate-depth-N" rather than "-ftemplate-depth=N". An unnamed tag type that is declared with a typedef, e.g., typedef struct { int x, y; } Point; can be used as a template argument. Allow this, and check that we get sensible pretty-printing for such things. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66560 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaTemplate/class-template-id-2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/SemaTemplate/class-template-id-2.cpp') diff --git a/test/SemaTemplate/class-template-id-2.cpp b/test/SemaTemplate/class-template-id-2.cpp index 3014208b6e..5499c50a94 100644 --- a/test/SemaTemplate/class-template-id-2.cpp +++ b/test/SemaTemplate/class-template-id-2.cpp @@ -4,7 +4,7 @@ namespace N { template<> class A { }; - template<> class A; // expected-note{{forward declaration of 'class A'}} + template<> class A; // expected-note{{forward declaration of 'class A'}} class B : public A { }; } -- cgit v1.2.1