public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65715] New: Aligned attribute C++ issues
@ 2015-04-09 15:11 jakub at gcc dot gnu.org
  2015-04-09 15:12 ` [Bug c++/65715] " jakub at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-09 15:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65715
           Summary: Aligned attribute C++ issues
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
                CC: hubicka at gcc dot gnu.org, jason at gcc dot gnu.org
        Depends on: 65690

+++ This bug was initially created as a clone of Bug #65690 +++

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] 5+ messages in thread

end of thread, other threads:[~2015-04-10  7:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 15:11 [Bug c++/65715] New: Aligned attribute C++ issues jakub at gcc dot gnu.org
2015-04-09 15:12 ` [Bug c++/65715] " jakub at gcc dot gnu.org
2015-04-09 15:14 ` jakub at gcc dot gnu.org
2015-04-10  7:37 ` rguenth at gcc dot gnu.org
2015-04-10  7:39 ` 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).