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

            Bug ID: 105430
           Summary: [11/12/13 Regression] [DR 413] Change in value for
                    "Partial overriding of constant struct/union
                    initializers with designated initializers"
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hp at gcc dot gnu.org
  Target Milestone: ---

Created attachment 52902
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52902&action=edit
test-case

This bug is different to PR63944 where the description says "This bug is
specific to initializers of objects with automatic storage duration" but where
comments mention problems with static duration, so it's apparently part of a
set of related problems or same base problem: here we have a constant static
object.

Also, part of this sub-problem is that the initialized value changed between
gcc-10 and gcc-11, which does not appear to be the case for the code in
PR63944.

The test-case in this PR shows a regression since gcc-10 (and earlier
releasess) behaves correctly; only the overridden field changed value, as
intended.

It manifests for all targets.

Reply via email to