[Bug c++/93280] ice: in cp_gimplify_expr, at cp /cp-gimplify.c:933

2020-01-15 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93280

David Binderman  changed:

   What|Removed |Added

 CC||jason at gcc dot gnu.org

--- Comment #2 from David Binderman  ---
git blame suggests a recent change by Jason Merrill:

08f594eb399d gcc/cp/cp-gimplify.c (Jason Merrill  2020-01-08 15:31:25
-0500  933)   gcc_checking_assert (!TARGET_EXPR_DIRECT_INIT_P (*expr_p));

Adding Jason to the CC list.

[Bug c++/93280] ice: in cp_gimplify_expr, at cp /cp-gimplify.c:933

2020-01-15 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93280

--- Comment #1 from David Binderman  ---
Reduced C++ code is:

struct a {
  template  a(b);
  int c;
};
struct d {
  a e{0};
};
void f() {
  d g;
  g = {};
}

$ /home/dcb/gcc/results/bin/gcc -c bug583.cc
bug583.cc: In function ‘void f()’:
bug583.cc:10:5: internal compiler error: in cp_gimplify_expr, at
cp/cp-gimplify.c:933
   10 |   g = {};
  |   ~~^~~~
0x60a396 cp_gimplify_expr(tree_node**, gimple**, gimple**)
../../trunk.git/gcc/cp/cp-gimplify.c:933

It seems that the -std=c++17 is not required.