1 // PR c++/55240 2 // { dg-do compile { target c++11 } } 3 main()4 int main() 5 { 6 int q = 1; // { dg-message "declared here" } 7 struct test { int x = q; } instance; // { dg-error "local variable" } 8 } 9