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

            Bug ID: 118440
           Summary: Wrong zero initialization with tuple usage
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: disservin.social at gmail dot com
  Target Milestone: ---

Created attachment 60126
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60126&action=edit
reproduction

The following code zero initializes the members of the structure S which should
instead be in an uninitialized state, since a user defined constructor is
defined. clang does no such initialization.

https://godbolt.org/z/zzxq6xnWx, compiled with:
-O3 -Wall -Wextra

Please let me know if there's maybe something I am missing here?
  • [Bug c++/118440] New: Wrong... disservin.social at gmail dot com via Gcc-bugs

Reply via email to