aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/instantiate4.C
blob: 732b8529de2257959ace74e41041dfc39143aaaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile }

// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>

// PR c++/10682: Typedef to enum template instantiation logic.

template <typename T>
struct Foo {
  enum E {a,b,c};
  typedef E EE;
};

void Baz(Foo<int>::EE x);