(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1y/
constexpr-98122.C
// PR c++/98122
// { dg-do compile { target c++14 } }

union U { int a; };

constexpr bool
foo ()
{
  U f { 42 };
  constexpr auto m = &U::a;
  return (f.*m) == 42;
}

static_assert (foo (), "");