repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
alias-decl-55.C
blob
c6d7ae64dd6ac52dbd7e71a842d892df5327eea3
1
// PR c++/71718
2
// { dg-do compile { target c++11 } }
3
4
template <typename T>
5
class A : T{};
6
7
template <typename T>
8
using sp = A<T>;
9
10
struct Base {};
11
12
template <typename T, int num = 1>
13
const sp<T>
14
rec() // { dg-error "depth" }
15
{
16
return rec<T, num - 1>();
17
}
18
19
static void f(void) {
20
rec<Base>();
21
}
22
23
// { dg-prune-output "compilation terminated" }