public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug compile/31397] New: arrays with structs with arrays gets the wrong alignment Date: Sun, 18 Feb 2024 02:57:10 +0000 [thread overview] Message-ID: <bug-31397-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=31397 Bug ID: 31397 Summary: arrays with structs with arrays gets the wrong alignment Product: gdb Version: unknown Status: NEW Severity: normal Priority: P2 Component: compile Assignee: unassigned at sourceware dot org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- ``` gcc src.c -gdwarf-5 -o a.out && gdb a.out (gdb) b 13 Breakpoint 1 at 0x1170: file src.c, line 13. (gdb) run Starting program: a.out (gdb) expr z[0]._[0] = 1 gdb command line:1:1: error: size of array element is not a multiple of its alignment Compilation failed. (gdb) expr y[0]._[0] = 1 (gdb) expr x[0]._[0] = 1 gdb command line:1:1: error: alignment of array elements is greater than element size Compilation failed. ``` Running with the trunk gcc and the trunk gdb here and this fails. -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2024-02-18 2:57 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-18 2:57 pinskia at gcc dot gnu.org [this message] 2024-02-18 2:57 ` [Bug compile/31397] " pinskia at gcc dot gnu.org 2024-02-18 3:01 ` pinskia at gcc dot gnu.org 2024-02-18 6:59 ` sam at gentoo dot org 2024-02-18 10:23 ` ssbssa at sourceware dot org 2024-02-20 18:25 ` tromey at sourceware dot org 2024-02-22 1:46 ` tromey at sourceware dot org 2024-02-29 22:38 ` cvs-commit at gcc dot gnu.org 2024-03-14 15:56 ` cvs-commit at gcc dot gnu.org 2024-03-14 15:56 ` tromey at sourceware dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-31397-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).