https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111873

--- Comment #2 from CTC <19373742 at buaa dot edu.cn> ---
A reduced testcase:

struct a {
  short b;
};
int d;
const struct a c;
void e(short x) {}
void f(short x) {}
int g(const struct a i) {return 0;}
void h(const struct a i) {
  d = g(i);
  f(i.b);
  e(i.b);
}
int main() { 
  h(c);
  return 0;
}

Reply via email to