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++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
canon-type-12.C
blob
f2467fa174764466ea35e424101e8c1d05769086
1
// { dg-do compile { target c++11 } }
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
}