Debian Codegraph @

gcc/testsuite/g++.dg/expr/crash2.C

raw
1 // PR c++/14267
2
3 class foo {
4 public: static int& x;
5 };
6 int temp;
7 int& foo::x=temp;
8
9 int main() {
10 int x = 3;
11 &foo::x = x; // { dg-error "3:lvalue required" }
12 return 0;
13 }
14