blob: 27f4c5f61727aa3240db2a40a1dd59d0a5582c31 [file] [log] [blame]
// PR c++/82299
// { dg-do compile { target c++11 } }
// { dg-options "-Wuseless-cast" }
enum Enum : char { A = 0, B = 1 };
struct S {
Enum e { Enum::A }; // { dg-bogus "useless cast to type" }
};