summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/using5.C
blob: 096ddc0b7cd0dd3fcca94e4d4745dd5a226d7628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do compile }

// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 31 Jul 2003 <nathan@codesourcery.com>

// PR 9447. further test cases for dependent using decl

template <typename T> struct Base;

template <typename T> struct Derived : public Base<T> {
  using Base<T>::i;
  
  Derived() { i; }
  
  int get_i() { return i.f(); }
  
};