summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/operator3.C
blob: 08f5c83f229d9aaaa5439df98be2a18f8a7d6435 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/9454
// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
// { dg-do compile }

template <int> struct A
{
    struct B     { operator int (); };
    struct C : B { operator int (); };
};

A<0> a;