// PR c++/49418 template void f (const T t) { t = 1; // { dg-error "" } } int main() { f(1); }