[Bug c++/126335] [17 regression] Wrong code: trailing default-constructed element of a static array of class type left uninitialized since r17-1661
"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126335 --- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <[email protected]>: https://gcc.gnu.org/g:222f7f90191563a71dfbc710c8de950ace91c439 commit r17-3480-g222f7f90191563a71dfbc710c8de950ace91c439 Author: Patrick Palka <[email protected]> Date: Thu Aug 20 16:58:18 2026 -0400 c++: add fixed test [PR126472] Fixed by r17-2835 for PR c++/126335 and, unlike that PR's testcase, did not depend on r17-1661 to trigger the bug. PR c++/126472 gcc/testsuite/ChangeLog: * g++.dg/cpp0x/initlist135.C: New test.