☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
arrow1.C
☽
☼
gcc/testsuite/g++.dg/template/arrow1.C
code
plain
raw
1
// PR c++/49118
2
// { dg-do compile }
3
4
template< int n >
5
struct a {
6
a< n+1 >
7
operator->()
8
{ return a< n+1 >(); }
9
};
10
11
int main() {
12
a<0>()->x; // { dg-error "depth" }
13
}
14
15
// { dg-prune-output "compilation terminated" }