1 // PR c++/48106 2 // { dg-options -std=c++0x } 3 4 enum class E : char 5 { 6 e 7 }; 8 9 bool operator&(E e, char m) 10 { 11 return static_cast<int>(e) & m; 12 } 13