aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/crash41.C
blob: 16e7028a6688f48dd685e436c0b62d19a3f55336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/22464

template<typename T>
void do_something(const T* A) // { dg-message "declared" }
{ 
  struct helper_t{ 
    helper_t() {  
      A[0]; // { dg-error "use" }
    }
  } helper;
}

void sub1() {
  double A[7];
  do_something (A);
}