public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/105430] New: [11/12/13 Regression] [DR 413] Change in value for "Partial overriding of constant struct/union initializers with designated initializers"
@ 2022-04-29  0:20 hp at gcc dot gnu.org
  2022-04-29  0:25 ` [Bug c/105430] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hp at gcc dot gnu.org @ 2022-04-29  0:20 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-29 10:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29  0:20 [Bug c/105430] New: [11/12/13 Regression] [DR 413] Change in value for "Partial overriding of constant struct/union initializers with designated initializers" hp at gcc dot gnu.org
2022-04-29  0:25 ` [Bug c/105430] " pinskia at gcc dot gnu.org
2022-04-29  6:40 ` rguenth at gcc dot gnu.org
2022-07-26 11:43 ` rguenth at gcc dot gnu.org
2023-05-29 10:06 ` [Bug c/105430] [11/12/13/14 " jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).