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
/
pr70466-2.C
blob
7a7458a61f1ea1e58d2cd7231082f363a974cad1
1
// PR c++/70466
2
3
template < class T, class S >
4
struct A
5
{
6
explicit A (...) {}
7
};
8
9
template < class T, class S >
10
A < T, S > foo (T (S::*f) ())
11
{
12
return A < T, S > (f);
13
}
14
15
struct B
16
{
17
void bar () {}
18
};
19
20
int
21
main ()
22
{
23
foo (&B::bar);
24
return 0;
25
}