//PR c++/30851

void foo()
{
  asm ("%[x]" : [0](x));  // { dg-error "numeric constant|token" }
}
