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
PR c++/49418
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
arrow1.C
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 "instantiation depth exceeds maximum" }
13
}
14
15
// { dg-prune-output "incomplete type" }
16
// { dg-prune-output "declaration of" }
17
// { dg-prune-output "used but never defined" }