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++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
typeof11.C
blob
757bcdea4949d9cbcfeab5359748dabde3944adf
1
// PR c++/37920
2
3
template<typename T> T& ensure_obj(const T&);
4
template <typename T>
5
void func2(T& t)
6
{
7
typedef __typeof__(ensure_obj(t)) ttt;
8
struct ttt1
9
{
10
ttt1( ttt arg0 ){}
11
} tttt ( t );
12
}
13
int main()
14
{
15
double d = 5;
16
func2(d);
17
}
18