summaryrefslogtreecommitdiff
path: root/test/SemaCXX/pr13353.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-07-17 20:24:05 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-07-17 20:24:05 +0000
commit251c449b280eb845017a6c022ed7189d17c63d49 (patch)
tree27bb722dc9e9946b298b84baf9c56648a007c4f8 /test/SemaCXX/pr13353.cpp
parente9af3e66cffa1b3d6dc75433b8a9673ecae33044 (diff)
downloadclang-251c449b280eb845017a6c022ed7189d17c63d49.tar.gz
Handle the case where the base type is not dependent, but the derived one is.
Fixes pr13353.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/pr13353.cpp')
-rw-r--r--test/SemaCXX/pr13353.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/SemaCXX/pr13353.cpp b/test/SemaCXX/pr13353.cpp
new file mode 100644
index 0000000000..8fb5443fe6
--- /dev/null
+++ b/test/SemaCXX/pr13353.cpp
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -fsyntax-only %s
+struct foo {
+ virtual void bar() ;
+};
+template<typename T>
+class zed : public foo {
+};
+template<typename T>
+class bah : public zed<T> {
+ void f() {
+ const_cast<foo *>(this->g())->bar();
+ }
+};