blob: 5d73bbf67392b7a00dcbb14aced222e9d1f0f73f [file] [log] [blame]
// { dg-options -std=c++17 }
struct derived;
struct base {
friend struct derived;
private:
base();
};
struct derived : base {};
derived d1{}; // { dg-error "" "" { target c++17 } }
derived d2; // still OK