[Bug c++/109966] [13/14 Regression] ICE in implify_var_or_parm_decl, à gimplify.cc:3058

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109966

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|13.2|13.3

--- Comment #5 from Richard Biener  ---
GCC 13.2 is being released, retargeting bugs to GCC 13.3.

[Bug c++/109966] [13/14 Regression] ICE in implify_var_or_parm_decl, à gimplify.cc:3058

2023-05-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109966

--- Comment #4 from Andrew Pinski  ---
(In reply to Marek Polacek from comment #3)

Slightly more reduced (removing the template):
```
struct k {
  k(const char *);
};
struct M {
  k name;
  int j = 42;
  int default_value = j;
};
struct S {
  M arr[3]{M{""}, {""}, {""}};
} o;
```

[Bug c++/109966] [13/14 Regression] ICE in implify_var_or_parm_decl, à gimplify.cc:3058

2023-05-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109966

--- Comment #3 from Marek Polacek  ---
// PR c++/109966

struct M;
template  struct __array_traits {
  typedef M _Type[_Nm];
};
template  struct array {
  typename __array_traits<_Nm>::_Type _M_elems;
};
struct basic_string_view {
  basic_string_view(const char *);
};
struct M {
  basic_string_view name;
  int j = 42;
  int default_value = j;
};
struct S {
  array<3> arr{M{""}, {""}, {""}};
} o;

[Bug c++/109966] [13/14 Regression] ICE in implify_var_or_parm_decl, à gimplify.cc:3058

2023-05-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109966

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org
   Keywords|needs-bisection |
 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |mpolacek at gcc dot 
gnu.org

--- Comment #2 from Marek Polacek  ---
Oy, started with r13-765:

commit 1b661f3f5e712c951e774b3b91fffe4dac734cc7
Author: Marek Polacek 
Date:   Tue Apr 26 15:52:00 2022 -0400

c++: ICE with temporary of class type in DMI [PR100252]

[Bug c++/109966] [13/14 Regression] ICE in implify_var_or_parm_decl, à gimplify.cc:3058

2023-05-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109966

Richard Biener  changed:

   What|Removed |Added

  Known to work||12.3.0
Summary|[13.1 Regression] ICE in|[13/14 Regression] ICE in
   |implify_var_or_parm_decl, à |implify_var_or_parm_decl, à
   |gimplify.cc:3058|gimplify.cc:3058
   Target Milestone|--- |13.2
   Priority|P3  |P2
   Last reconfirmed||2023-05-25
 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW
  Known to fail||13.1.0
   Keywords||ice-on-valid-code,
   ||needs-bisection

--- Comment #1 from Richard Biener  ---
#include 
#include 

template 
struct MpvOptionBoundedScalar {
std::string_view name;
T default_value = 0;
T cur_value = default_value;
};

struct OptionHolder {
std::array, 3> video_zoom_options = {
MpvOptionBoundedScalar{"video-zoom",  0},
MpvOptionBoundedScalar{"video-pan-x", 0},
MpvOptionBoundedScalar{"video-pan-y", 0},
};
};

OptionHolder o;