1 /* PR c++/34963 This used to ICE */ 2 /* { dg-do compile } */ 3 4 struct A 5 { 6 static friend A::~A(); /* { dg-error "3:storage class specifiers" } */ 7 /* { dg-error "extra qualification|implicitly friend" "" { target *-*-* } .-1 } */ 8 }; 9 10