blob: fce24528908e036ad27db4c8a064ff13f2d9de1c [file] [log] [blame]
// PR c++/104682
// { dg-do compile { target c++11 } }
template<typename>
struct S {
enum B {
A
} __attribute__((unavailable)) ;
};
struct S2 {
enum B {
A
} __attribute__((unavailable));
};
void
g ()
{
S<int>::B a1; // { dg-error "is unavailable" }
S2::B a2; // { dg-error "is unavailable" }
}