aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash28.C
blob: 752c9706990dc08f9da66853b2a67e10ea098cd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Build don't link:
// Special g++ Options:

template <class ARRY>
inline unsigned int asize(ARRY &a)
{
  return sizeof(a) / sizeof(a[0]);
}

int f(unsigned int n) {
  int x[n];

  asize(x); // ERROR - no matching function
};