diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-09-24 23:39:01 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-09-24 23:39:01 +0000 |
| commit | 5013a7e42d2ed892b67550efd9063cd1fbff9541 (patch) | |
| tree | 85cfef4a072ddf78b9d162c3d7d9a931f43a88d2 /clang/test/SemaTemplate/explicit-specialization-member.cpp | |
| parent | c594890a82bf25f8a407180caa4b30be79d15e62 (diff) | |
| download | bcm5719-llvm-5013a7e42d2ed892b67550efd9063cd1fbff9541.tar.gz bcm5719-llvm-5013a7e42d2ed892b67550efd9063cd1fbff9541.zip | |
When entering the scope of a declarator, make sure that the scope is
complete (or, possibly causing template instantiation).
Test this via some explicit specializations of member functions.
llvm-svn: 82732
Diffstat (limited to 'clang/test/SemaTemplate/explicit-specialization-member.cpp')
| -rw-r--r-- | clang/test/SemaTemplate/explicit-specialization-member.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/explicit-specialization-member.cpp b/clang/test/SemaTemplate/explicit-specialization-member.cpp new file mode 100644 index 00000000000..197dae5a15a --- /dev/null +++ b/clang/test/SemaTemplate/explicit-specialization-member.cpp @@ -0,0 +1,11 @@ +// RUN: clang-cc -fsyntax-only -verify %s +template<typename T> +struct X0 { + typedef T* type; + + void f0(T); + void f1(type); +}; + +template<> void X0<char>::f0(char); +template<> void X0<char>::f1(type); |

