1// { dg-do compile } 2 3struct S { 4 void foo() { 5 for (_ptr; ;) {} // { dg-error "not declared" } 6 _ptr = 0; 7 } 8}; 9 10