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
PR c++/52685
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
canon-type-12.C
1
// { dg-options "-std=c++0x" }
2
3
template<class T, T t = (T)0>
4
struct S
5
{
6
void
7
foo(decltype(t) = t);
8
};
9
10
template<class T, T t>
11
void
12
S<T, t>::foo(decltype(t))
13
{
14
}
15
16
void
17
bar()
18
{
19
S<int> s;
20
s.foo();
21
}