[Bug c++/84940] [7/8 Regression] internal compiler error: in build_value_init_noctor, at cp/init.c:465

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 19 11:52:00 GMT 2018


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Slightly adjusted testcase:
void
foo (int x)
{
  struct {} a[1][x](-a[0]); // { dg-error "wrong type argument to unary minus"
}
}


More information about the Gcc-bugs mailing list