// PR c++/29291 // { dg-do compile } template void foo() { new int(; // { dg-error "before" } }