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
Merge from trunk: 215733-215743
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
template
/
arrow1.C
blob
690df4c5fcca15c8f1e35ef28ca147bf8501f00b
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" }