Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
aggr-base2a.C
blob: ceeb6d8f120cf838bc8aa545ed0065110a707b92 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
derived
;
struct
base
{
friend
struct
derived
;
private
:
base
();
};
struct
derived
:
base
{};
derived d1
{};
// { dg-error "" "" { target c++17 } }
derived d2
;
// still OK