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
revert accidentally committed changes
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
typeof11.C
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