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

            Bug ID: 102307
           Summary: internal compiler error: in reshape_init_r, at
                    cp/decl.c:6717
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jyhgekyfbkjsyebf at protonmail dot ch
  Target Milestone: ---

Created attachment 51449
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51449&action=edit
Minimal reproducible example

The following minimal reproducible example crashes the compiler:

```
#include <array>
template <unsigned N, unsigned M> struct Matrix {
  Matrix(double const (&arr)[N][M]);
  constexpr Matrix(std::array<std::array<double, M>, N> const &arr);
};
int main() { constexpr Matrix<2, 3> mat{{{1.0, 2.0, 3.0}, {4.0, 5.0, 6.0}}}; }
```

Find attached: this example, basic information about compiler and backtrace,
.ii file, .s file.

Reply via email to