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
* [Bug c++/65715] Aligned attribute C++ issues 2015-04-09 15:11 [Bug c++/65715] New: Aligned attribute C++ issues jakub at gcc dot gnu.org @ 2015-04-09 15:12 ` jakub at gcc dot gnu.org 2015-04-09 15:14 ` jakub at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: jakub at gcc dot gnu.org @ 2015-04-09 15:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65715 Bug 65715 depends on bug 65690, which changed state. Bug 65690 Summary: [5 Regression] typedef alignment lost since r219705 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65690 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/65715] Aligned attribute C++ issues 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 3 siblings, 0 replies; 5+ messages in thread From: jakub at gcc dot gnu.org @ 2015-04-09 15:14 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65715 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Tracking the rest from PR65690: /* PR c++/65715 */ /* { dg-do run } */ typedef double T[4][4] __attribute__((aligned (2 * __alignof__ (double)))); void foo (const T); struct S { T s; }; int main () { if (__alignof__ (const T) != 2 * __alignof__ (double)) __builtin_abort (); return 0; } #if defined(__cplusplus) && __cplusplus >= 201103L static_assert (alignof (const T) == 2 * alignof (double), "alignment of const T"); #endif ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/65715] Aligned attribute C++ issues 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 3 siblings, 0 replies; 5+ messages in thread From: rguenth at gcc dot gnu.org @ 2015-04-10 7:37 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65715 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-04-10 Ever confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/65715] Aligned attribute C++ issues 2015-04-09 15:11 [Bug c++/65715] New: Aligned attribute C++ issues jakub at gcc dot gnu.org ` (2 preceding siblings ...) 2015-04-10 7:37 ` rguenth at gcc dot gnu.org @ 2015-04-10 7:39 ` jakub at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jakub at gcc dot gnu.org @ 2015-04-10 7:39 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65715 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Well, Jason has already committed the fix for this in PR65690. ^ 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).