blob: e87a31ce6d520028878e7292cf268f20fa2413d5 [file] [log] [blame]
// PR c++/56155
// { dg-do compile { target c++11 } }
enum e_ : unsigned char { Z_, E_=sizeof(Z_) };
static_assert( E_ == 1, "E_ should be 1");
template <class T>
struct A {
enum e_ : unsigned char { Z_, E_=sizeof(Z_) };
};
static_assert ( A<double>::E_ == 1, "E_ should be 1");