Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/crash87.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // Origin: PR c++/38357 |
2 // { dg-do compile } | |
3 | |
4 class BUG | |
5 { | |
6 public: | |
7 bool name() { return true; } | |
8 }; | |
9 | |
10 template <bool T> | |
11 struct BUG1_5 | |
12 { | |
13 | |
14 }; | |
15 | |
16 template <bool name> | |
17 class BUG2 : BUG | |
18 { | |
19 public: | |
20 typedef BUG1_5<name> ptr; // { dg-error "convert" } | |
21 }; | |
22 | |
23 int main() | |
24 { | |
25 BUG2<false> b; | |
26 return 0; | |
27 } |