Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/pr65936.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // checking ICE in canonical typing |
2 | |
3 class A; | |
4 | |
5 template <typename> struct B | |
6 { | |
7 typedef A type; | |
8 }; | |
9 | |
10 template <class T> class C | |
11 : public B<T>::type | |
12 { | |
13 } __attribute__ ((__may_alias__)); | |
14 | |
15 class A | |
16 { | |
17 operator const C<int> &() | |
18 { | |
19 return *static_cast<const C<int> *> (this); | |
20 } | |
21 }; |