Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/torture/pr54647.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 // { dg-do compile } |
2 | |
3 class A | |
4 { | |
5 }; | |
6 template <class type> struct D:A | |
7 { | |
8 type & operator[](int); | |
9 }; | |
10 struct B | |
11 { | |
12 typedef D <int *>Row; | |
13 struct C | |
14 { | |
15 Row *row; | |
16 }; | |
17 }; | |
18 B::C a; | |
19 B::Row & b = *a.row; | |
20 void | |
21 fn1 () | |
22 { | |
23 while (1) | |
24 b[0] = b[0] ? (int *) -1 : 0; | |
25 } |