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

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

struct a {
  template <typename b> 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.

Reply via email to