☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
init
/
pr71516.C
☽
☼
gcc/testsuite/g++.dg/init/pr71516.C
code
plain
raw
1
// PR c++/71516
2
// { dg-do compile }
3
4
struct A; // { dg-message "forward declaration of" }
5
struct B
6
{
7
static A a;
8
};
9
A B::a = A(); // { dg-error "has initializer but incomplete type|invalid use of incomplete type" }
10
struct A {};