public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65690] New: [5 Regression] typedef alignment lost since r219705
@ 2015-04-07 18:02 jakub at gcc dot gnu.org
  2015-04-07 18:03 ` [Bug c++/65690] " jakub at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-07 18:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65690
           Summary: [5 Regression] typedef alignment lost since r219705
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org

typedef double T[4][4] __attribute__((aligned (16)));
void foo (const T);
struct S { T s; };

int
main ()
{
  if (__alignof__ (struct S) < 16 || __alignof__ (T) < 16)
    __builtin_abort ();
  return 0;
}

(distilled from WebKit) fails with C++ starting with r219705 (but keeps working
with C).  Without the const T in the argument list of foo (or with just T in
there) it works.


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

end of thread, other threads:[~2015-04-09 20:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-07 18:02 [Bug c++/65690] New: [5 Regression] typedef alignment lost since r219705 jakub at gcc dot gnu.org
2015-04-07 18:03 ` [Bug c++/65690] " jakub at gcc dot gnu.org
2015-04-07 22:02 ` hubicka at gcc dot gnu.org
2015-04-07 22:13 ` hubicka at gcc dot gnu.org
2015-04-07 22:28 ` hubicka at gcc dot gnu.org
2015-04-08  0:04 ` hubicka at gcc dot gnu.org
2015-04-08  2:19 ` hubicka at gcc dot gnu.org
2015-04-08  2:34 ` hubicka at gcc dot gnu.org
2015-04-08  7:45 ` jakub at gcc dot gnu.org
2015-04-08  8:49 ` hubicka at gcc dot gnu.org
2015-04-08  8:56 ` jakub at gcc dot gnu.org
2015-04-09 15:12 ` jakub at gcc dot gnu.org
2015-04-09 20:12 ` jason 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).