public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/109144] New: d: Closure fields don't get same alignment as local variable
@ 2023-03-15 13:56 ibuclaw at gcc dot gnu.org
  2023-03-16 11:36 ` [Bug d/109144] " cvs-commit at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ibuclaw at gcc dot gnu.org @ 2023-03-15 13:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109144
           Summary: d: Closure fields don't get same alignment as local
                    variable
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gcc dot gnu.org
  Target Milestone: ---

Between the variable declaration, and building its associated field in a
closure, the decl alignment gets lost, so this fails.

---
void main()
{
    align(128) byte var;
    assert((cast(size_t) &var) % 128 == 0);
    var = 73;
    assert((() => var)() == 73);
}

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

end of thread, other threads:[~2023-03-16 11:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 13:56 [Bug d/109144] New: d: Closure fields don't get same alignment as local variable ibuclaw at gcc dot gnu.org
2023-03-16 11:36 ` [Bug d/109144] " cvs-commit at gcc dot gnu.org
2023-03-16 11:38 ` cvs-commit at gcc dot gnu.org
2023-03-16 11:43 ` ibuclaw 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).