Sign in
gnu
/
gcc
/
772d532e0ba1e4b22c2b7d576e14b34ee929c093
/
.
/
gcc
/
testsuite
/
g++.dg
/
init
/
pr71516.C
blob: 0b9aec41707c5660597951233bfe62afb66d94ee [
file
] [
log
] [
blame
]
// PR c++/71516
// { dg-do compile }
struct
A
;
// { dg-message "forward declaration of" }
struct
B
{
static
A a
;
};
A B
::
a
=
A
();
// { dg-error "has initializer but incomplete type|invalid use of incomplete type" }
struct
A
{};