Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
arrow1.C
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" }