view gcc/testsuite/g++.dg/template/dependent-expr6.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

// { dg-do compile }

// Copyright 2007 Free Software Foundation
// Contributed by Andreas Krebbel <Andreas.Krebbel@de.ibm.com>

// PR C++ 34081 ICE

class Foo;

template < class Foo > class Bar
{
  enum Status
  { OK, NO };

  enum Status getStatus ()
  {
    return status;
  }

  Status status;
};