[Bug c++/86871] [8/9 Regression] ICE: gimple check: expected gimple_assign(error_mark), have gimple_call(trunc_mod_expr) in gimple_assign_lhs, at gimple.h:2462

slyfox at inbox dot ru gcc-bugzilla@gcc.gnu.org
Tue Aug 7 08:52:00 GMT 2018


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

--- Comment #4 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Shortened even more by removing operator overload:

 int b;
 int c;
 void g() {
  for (int f; f; f++) {
    int d = 0;
    for (int e = -1; e <= 1; e++) {
      int a = f + e;
      if (a)
        d = *(&c + a);
    }
    *(&b + f) = d;
  }
 }


More information about the Gcc-bugs mailing list