[Bug c++/84978] ice in cxx_eval_constant_expression at gcc/cp/constexpr.c:4109

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 19 21:59:00 GMT 2018


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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Reduced C++ code:

typedef struct { struct a *b; } c;
typedef void (*d)(c *);
typedef struct a {
  d e;
  int f;
  long g;
} h;
h i() {
  h j;
  ((c *)j.f)->b->e(0);
  return j;
}


More information about the Gcc-bugs mailing list