aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/error52.C
blob: 3350c8e6a787397eecfbde578e00fabc81b13fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/16128

template<typename T>
struct A {
    };

namespace H {
    template<typename T>
    struct B {};
    }

A a;             // { dg-error "template" }
H::B b;          // { dg-error "template" }

int main() {
    A a;         // { dg-error "template" }
    H::B b;      // { dg-error "template" }
    return 0;
    }