blob: 690df4c5fcca15c8f1e35ef28ca147bf8501f00b [file] [log] [blame]
// PR c++/49118
// { dg-do compile }
template< int n >
struct a {
a< n+1 >
operator->()
{ return a< n+1 >(); }
};
int main() {
a<0>()->x; // { dg-error "depth" }
}
// { dg-prune-output "compilation terminated" }