Mercurial > hg > CbC > CbC_gcc
view 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 |
line wrap: on
line source
// checking ICE in canonical typing class A; template <typename> struct B { typedef A type; }; template <class T> class C : public B<T>::type { } __attribute__ ((__may_alias__)); class A { operator const C<int> &() { return *static_cast<const C<int> *> (this); } };