[Bug c++/100466] compilation of assignment from initialization list to an object with array member T[N] and non-trivial constructor of T is very slow

xry111 at mengyan1223 dot wang gcc-bugzilla@gcc.gnu.org
Fri May 7 07:33:55 GMT 2021


Xi Ruoyao <xry111 at mengyan1223 dot wang> changed:

           What    |Removed                     |Added
          Component|libstdc++                   |c++
            Summary|compilation of assignment   |compilation of assignment
                   |from initialization list to |from initialization list to
                   |std::array<T, N> with       |an object with array member
                   |non-trivial constructor of  |T[N] and non-trivial
                   |T is very slow              |constructor of T is very
                   |                            |slow

--- Comment #4 from Xi Ruoyao <xry111 at mengyan1223 dot wang> ---
(In reply to Richard Biener from comment #3)
> I think that's an old known C++ FE issue which should emit a loop for inits
> instead of repeating assignments for each element.

Change summary and component then.

Is this a dup?  I tried to search an existing PR but couldn't find it.

More information about the Gcc-bugs mailing list