Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr70621.C

raw
1 float foo();
2
3 struct A
4 {
5 static float x; // { dg-message "previous declaration" }
6 };
7
8 double A::x = foo(); // { dg-error "conflicting declaration" }
9
10 void bar()
11 {
12 A::x = 0;
13 }