// PR c++/35240
// { dg-do compile }

template<int> struct A {};

template<int N> A<sizeof(new int[N][N])> foo();

void bar()
{
  foo<1>();
}
