summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/defarg14.C
blob: c4e2061367a97543fd9bb068045c1239a29e1210 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }

// Origin: Larry Evans <jcampbell3@prodigy.net>

// Bug: enum in default template arguments are not properly handled.

enum Enum0 { E0, E1, E2 };
enum Enum1 { E3=E2+1, E4=E3+1 };

template <Enum0 Out_FARG0> class OutTmpl
{
  public:
    template <Enum0 In_FARG0, Enum1 In_FARG1=E4> class InTmpl
    {
    };
};

OutTmpl<E1> m;