summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash87.C
blob: 7b8bf4ada0d0834a2bf494f5f89100d3f930f63d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Origin: PR c++/38357
// { dg-do compile }

class BUG
{
public:
 bool name() { return true; }
};

template <bool T>
struct BUG1_5
{

};

template <bool name>
class BUG2 : BUG
{
public:
 typedef BUG1_5<name> ptr; // { dg-error "could not convert template argument" }
};

int main()
{
 BUG2<false> b;
 return 0;
}