1 // { dg-do compile { target c++11 } }
2 
f()3 void f()
4 {
5   auto val = val;  // { dg-error "auto" }
6 }
7