summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/pr35240.C
blob: 47455b6583b00b97247184b96dc49e7013c4e463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/35240
// { dg-do compile }


template<int> struct A {};

template<int N> A<sizeof(new int[N][N])> foo(); // { dg-message "unimplemented" }

void bar()
{
  foo<1>(); // { dg-message "instantiated" }
}