repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
array24.C
blob
07879d250c0519f267911e028670f685b752c203
1
// PR c++/55032
2
3
template<typename T>
4
struct vec3t {
5
T c[3];
6
};
7
8
typedef vec3t<float> vec3;
9
10
class Bounds {
11
public:
12
Bounds(const vec3 bb[2]);
13
void foo(const vec3 & v) { v.c[0]; }
14
};
15
16
template<typename T>
17
void work(T& value);
18
19
void foo() {
20
vec3 bb[2];
21
work(bb);
22
}