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