view gcc/testsuite/g++.dg/cpp0x/scoped_enum8.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
line wrap: on
line source

// PR c++/85587
// { dg-do compile { target c++11 } }

template <int N>
struct S
{
  enum class T
  {
    E, F
  };
  void foo ();
};

template <int N>
void S<N>::foo ()
{
  decltype (T::F) t;
}

void
bar ()
{
  S<0> s;
  s.foo ();
}