(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
other/
pr87398.C
// PR c++/87398
// { dg-do compile }

struct A { virtual int foo (); };

int
bar (int x)
{
  A e[5][2];
  int f = e[4][x].foo ();
  return f;
}