Test for nonconforming template instantiation depth