Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / crash87.C
blob7b8bf4ada0d0834a2bf494f5f89100d3f930f63d
1 // Origin: PR c++/38357
2 // { dg-do compile }
4 class BUG
6 public:
7  bool name() { return true; }
8 };
10 template <bool T>
11 struct BUG1_5
16 template <bool name>
17 class BUG2 : BUG
19 public:
20  typedef BUG1_5<name> ptr; // { dg-error "could not convert template argument" }
23 int main()
25  BUG2<false> b;
26  return 0;