OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2014-02-26 Fabien Chene <fabien@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
array19.C
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
}