blob: 855bed9d7b997dbfee75656a6a98d8f698baed9a [file] [log] [blame]
// { dg-do compile { target 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