public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/65122] New: std::vector doesn't honor element alignment
@ 2015-02-19 15:26 jacob.benoit.1 at gmail dot com
  2015-02-19 16:22 ` [Bug libstdc++/65122] " jacob.benoit.1 at gmail dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jacob.benoit.1 at gmail dot com @ 2015-02-19 15:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65122
           Summary: std::vector doesn't honor element alignment
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jacob.benoit.1 at gmail dot com

Created attachment 34807
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34807&action=edit
testcase

Even in C++11 mode, even with the C++11 alignas keyword, element alignment
isn't honored by std::vector.

$ g++ vectoralign.cpp -o a --std=c++11 && ./a
ctor 0x2422010
ctor 0x2422050

Tested with a freshly built GCC 4.9.2 on Ubuntu x86-64.

Attaching testcase.

Note: this is morphing bug 53900.


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

end of thread, other threads:[~2015-02-20 14:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-19 15:26 [Bug libstdc++/65122] New: std::vector doesn't honor element alignment jacob.benoit.1 at gmail dot com
2015-02-19 16:22 ` [Bug libstdc++/65122] " jacob.benoit.1 at gmail dot com
2015-02-19 19:08 ` glisse at gcc dot gnu.org
2015-02-19 20:22 ` jacob.benoit.1 at gmail dot com
2015-02-19 20:59 ` glisse at gcc dot gnu.org
2015-02-19 21:05 ` jacob.benoit.1 at gmail dot com
2015-02-19 21:11 ` jacob.benoit.1 at gmail dot com
2015-02-19 21:29 ` glisse at gcc dot gnu.org
2015-02-19 21:32 ` jacob.benoit.1 at gmail dot com
2015-02-19 21:33 ` jacob.benoit.1 at gmail dot com
2015-02-20  7:50 ` rguenth at gcc dot gnu.org
2015-02-20 13:05 ` jacob.benoit.1 at gmail dot com
2015-02-20 14:22 ` jacob.benoit.1 at gmail dot com
2015-02-20 14:24 ` rguenth at gcc dot gnu.org
2015-02-20 14:40 ` rguenth 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).