view gcc/testsuite/g++.dg/lookup/using48.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

// PR c++/51190
// { dg-do compile }

struct A
{
  int i;
};

template<typename> struct B
{
  A* p;
};

template<typename T> struct C : B<T>
{
  using B<T>::p;

  C() { p->i; }

  int i1, i2, i3, i4, i5;
};

C<A> c;