diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-06 18:32:18 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-06 18:32:18 +0000 |
commit | cddbc1d5872c96cd8c3ad3ddededa304757270d7 (patch) | |
tree | b25173e56dfb650ec7c3dc0f9e1e80bdde92919f /test/SemaTemplate/nested-template.cpp | |
parent | 9ed63f8b87b1f7d074d21cc1210fd28d93291bea (diff) |
Don't try to check override control for invalid member functions. Fixes a crash in a corner case. Patch by Olivier Goffart!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/nested-template.cpp')
-rw-r--r-- | test/SemaTemplate/nested-template.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaTemplate/nested-template.cpp b/test/SemaTemplate/nested-template.cpp index 7849bae4d5..47502536ca 100644 --- a/test/SemaTemplate/nested-template.cpp +++ b/test/SemaTemplate/nested-template.cpp @@ -155,3 +155,8 @@ namespace PR10924 { { }; } + +class Outer1 { + template <typename T> struct X; + template <typename T> int X<T>::func() {} // expected-error{{out-of-line definition of 'func' from class 'X<T>' without definition}} +}; |