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
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr54318.C
blob
4dac31b883a8be3541681d9a55c0f1c4268c8ceb
1
// PR c++/54318
2
// { dg-do compile { target c++11 } }
3
4
template <typename T>
5
struct wrapped
6
{
7
typedef T type;
8
};
9
10
template <typename T>
11
typename T::type unwrap1(T);
12
13
int unwrap(int);
14
15
template <typename T>
16
auto unwrap(T t) -> decltype(unwrap(unwrap1(t)))
17
{
18
return unwrap(unwrap1(t));
19
}
20
21
int main()
22
{
23
unwrap(wrapped<wrapped<int>>());
24
}