public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/100935] New: d: T.alignof ignores explicit align(N) type alignment
@ 2021-06-06 21:16 ibuclaw at gdcproject dot org
  2021-06-09 18:00 ` [Bug d/100935] " cvs-commit at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-06-06 21:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100935
           Summary: d: T.alignof ignores explicit align(N) type alignment
           Product: gcc
           Version: 9.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

T.alignof currently always returns the natural alignment of a type:

align(8) struct Aligned { int a; }
static assert(Aligned.alignof == 8); // fails, 4
align(1) struct Packed { int a; }
static assert(Packed.alignof == 1);  // fails, 4

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

end of thread, other threads:[~2021-06-09 18:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-06 21:16 [Bug d/100935] New: d: T.alignof ignores explicit align(N) type alignment ibuclaw at gdcproject dot org
2021-06-09 18:00 ` [Bug d/100935] " cvs-commit at gcc dot gnu.org
2021-06-09 18:01 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:03 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:04 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:06 ` ibuclaw at gdcproject dot 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).