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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
incomplete6.C
blob
7138b6a3b417655b6d193dec09f1d03bc29d4d62
1
// PR c++/48115
2
3
template<typename> struct templ { };
4
5
template<typename T> T declval();
6
7
typedef int (*F2)(...);
8
9
template<int> struct Int { };
10
11
template<typename F, typename T>
12
struct S
13
{
14
template<typename A>
15
Int<sizeof( declval<F>()(T()) )>
16
f(A);
17
};
18
19
int main()
20
{
21
S<F2, templ<int> >().f(0);
22
}