☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
array37.C
☽
☼
gcc/testsuite/g++.dg/template/array37.C
code
plain
raw
1
// PR c++/115358
2
3
template<class T>
4
struct A { static int STR[]; };
5
6
template<class T>
7
int A<T>::STR[] = {1,2,3};
8
9
void f(int(&)[3]);
10
11
template<class T>
12
void g() {
13
f(A<int>::STR); // { dg-bogus "int []" }
14
}