public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42555]  New: 4.5 regression: 16-byte aligned double is disallowed only in templates
@ 2009-12-30 18:57 bredelin at ucla dot edu
  2009-12-30 19:00 ` [Bug c++/42555] " bredelin at ucla dot edu
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bredelin at ucla dot edu @ 2009-12-30 18:57 UTC (permalink / raw)
  To: gcc-bugs

The following line of code is accepted:

typedef double AlignedDoubleType __attribute__((aligned(16)));

However, if I replace 'double' with a template parameter inside a template
function, then I get the following error message:

error: alignment of array elements is greater than element size

I think that the template version of the typedef should be allowed also, as it
is in 4.4.


-- 
           Summary: 4.5 regression: 16-byte aligned double is disallowed
                    only in templates
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bredelin at ucla dot edu
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42555


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

end of thread, other threads:[~2010-01-07 22:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-30 18:57 [Bug c++/42555] New: 4.5 regression: 16-byte aligned double is disallowed only in templates bredelin at ucla dot edu
2009-12-30 19:00 ` [Bug c++/42555] " bredelin at ucla dot edu
2009-12-30 19:04 ` bredelin at ucla dot edu
2010-01-01 20:35 ` [Bug c++/42555] [4.5 Regression] " rguenth at gcc dot gnu dot org
2010-01-01 23:48 ` hjl dot tools at gmail dot com
2010-01-02 23:23 ` jason at gcc dot gnu dot org
2010-01-02 23:48 ` hjl dot tools at gmail dot com
2010-01-04 17:04 ` jason at gcc dot gnu dot org
2010-01-04 17:54 ` jason at gcc dot gnu dot org
2010-01-04 17:55 ` jason at gcc dot gnu dot org
2010-01-07 22:24 ` hjl at gcc dot gnu 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).