summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/lookup/using51.C
blob: 8e3e56b056f763d3b7b05b03041ee1a2d7b70d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/51382
// { dg-do compile }
// { dg-options "-Wno-deprecated" }

template< int Value >
struct Base
{
   enum { b_e = Value };
};

template< typename Type >
struct Derived : Type
{
   Type::b_e;
   enum { d_e = b_e };
};

int v = (int)Derived< Base< 3 > >::d_e;
OpenPOWER on IntegriCloud