https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91718
Bug ID: 91718
Summary: Inherited constructors with arrays of objects
Product: gcc
Version: 9.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: edwin.carlinet at lrde dot epita.fr
Target Milestone: ---
g++ (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1) (also reproducible in gcc trunk on
compiler explorer) introduces a bug w.r.t. constructors inheritance
```
struct A
{
int data[2];
};
struct B : A
{
using A::A;
};
int main()
{
B b[2] = {{2,3,4}, {4,5,6, "azazezaz"}};
return b[0].data[0];
}
```
https://godbolt.org/z/dBLWTb
The expected behavior is a compilation failure as with gcc 9.2.0.