[Bug c++/36625] bogus error on __attribute__((aligned(N))) in template code

2010-05-04 Thread jason at gcc dot gnu dot org
--- Comment #10 from jason at gcc dot gnu dot org 2010-05-04 19:10 --- Fixed for 4.6 (but see bug 43758). -- jason at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/36625] bogus error on __attribute__((aligned(N))) in template code

2010-04-14 Thread jason at gcc dot gnu dot org
--- Comment #9 from jason at gcc dot gnu dot org 2010-04-14 20:18 --- Subject: Bug 36625 Author: jason Date: Wed Apr 14 20:17:34 2010 New Revision: 158355 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158355 Log: PR c++/36625 * c-common.c

[Bug c++/36625] bogus error on __attribute__((aligned(N))) in template code

2010-01-19 Thread jason at gcc dot gnu dot org
--- Comment #7 from jason at gcc dot gnu dot org 2010-01-19 23:30 --- The problem here is that the attribute parsing code sees that the argument is an identifier and treats it as a plain name rather than an expression; this is to support attributes like mode which take an identifier as

[Bug c++/36625] bogus error on __attribute__((aligned(N))) in template code

2010-01-19 Thread jason at gcc dot gnu dot org
--- Comment #8 from jason at gcc dot gnu dot org 2010-01-20 05:51 --- Created an attachment (id=19665) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19665action=view) patch -- jason at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/36625] bogus error on __attribute__((aligned(N))) in template code

2009-12-26 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2009-12-26 18:31 --- Let's CC Jason about this (frankly, I have *always* used double parentheses, I thought that was the only legal syntax ;) -- paolo dot carlini at oracle dot com changed: What|Removed

[Bug c++/36625] bogus error on __attribute__((aligned(N))) in template code

2009-12-26 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2009-12-26 19:13 --- Maybe related to c++/40821 ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36625

[Bug c++/36625] bogus error on __attribute__((aligned(N))) in template code

2008-12-26 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-12-27 07:04 --- Confirmed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/36625] bogus error on __attribute__((aligned(N))) in template code

2008-06-26 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2008-06-26 20:46 --- Oddly enough, doubling up on the parens around N works: template int N struct A { struct S { short f[3]; } __attribute__ ((aligned ((N; }; int main () { A123::S s; } -- sebor at roguewave dot com changed: