repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove outermost loop parameter.
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
array19.C
blob
79abf47c17a89fe8dde78b4cc7d062df956cce81
1
// PR c++/33553
2
// { dg-do compile }
3
4
template <class T> struct S { static const int sz = 2; };
5
template <class T> struct U { enum { sz = 2 }; };
6
7
template <class R>
8
struct P
9
{
10
template <class T> void bar (int (&x)[S<T>::sz]);
11
template <class T> void baz (int (&x)[U<T>::sz]);
12
};
13
14
P<int> p;
15
16
void
17
foo (void)
18
{
19
int x[2];
20
p.bar<int> (x);
21
p.baz<int> (x);
22
}