diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr50491.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr50491.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr50491.C b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr50491.C new file mode 100644 index 0000000..d203a33 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr50491.C @@ -0,0 +1,17 @@ +// { dg-do compile { target c++11 } } + +struct GrandParent { + void *get(); +}; + +template<class OBJ> +struct Parent : public GrandParent{ +}; + +template<typename T> +struct Child : public Parent<T> { + using GrandParent::get; + void Foo() { + void* ex = get(); + } +}; |