view gcc/testsuite/g++.dg/template/pr65936.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +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);
  }
};