Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / diagnostic / ptrtomem3.C
blob6096a98f708f2a12078ee0caf10cbda77a66db4c
1 // Check that the diagnostic for a pointer-to-member expression has the caret
2 // at the &.
4 struct A
6   int i;
7 };
9 void f();
11 int main()
13   return &A::i;                 // { dg-error "10:cannot convert" }