diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup17.C b/gcc/testsuite/g++.old-deja/g++.other/lookup17.C index a367413e4293..6a7510a5d80d 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/lookup17.C +++ b/gcc/testsuite/g++.old-deja/g++.other/lookup17.C @@ -1,13 +1,14 @@ +// Bug: t->B is resolved to the type instead of the field. + struct A { struct B { } *B; int i, j, k, l, m; }; -struct A *t; +struct A a; int main () { - void *p = t - ->B; + void *p = a.B; }