[Bug c++/48138] __attribute__((aligned)) should give an error when applied to a typedef or template parameter, at least in C++0x mode.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48138 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|NEW --- Comment #3 from Jason Merrill 2011-06-21 02:25:34 UTC --- We now warn about ignored attributes on type arguments to class templates, but not yet for functions. Unassigning for now.
[Bug c++/48138] __attribute__((aligned)) should give an error when applied to a typedef or template parameter, at least in C++0x mode.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48138 --- Comment #2 from Jason Merrill 2011-06-21 02:24:12 UTC --- Author: jason Date: Tue Jun 21 02:24:09 2011 New Revision: 175236 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175236 Log: PR c++/48138 * pt.c (canonicalize_type_argument): New. (convert_template_argument, unify): Use it. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/g++.dg/ext/attr-aligned01.C
[Bug c++/48138] __attribute__((aligned)) should give an error when applied to a typedef or template parameter, at least in C++0x mode.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48138 --- Comment #1 from Jason Merrill 2011-06-20 14:40:27 UTC --- Author: jason Date: Mon Jun 20 14:40:19 2011 New Revision: 175215 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175215 Log: PR c++/48138 * tree.c (strip_typedefs): Use build_aligned_type. Added: trunk/gcc/testsuite/g++.dg/ext/attr-aligned01.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/tree.c trunk/gcc/testsuite/ChangeLog
[Bug c++/48138] __attribute__((aligned)) should give an error when applied to a typedef or template parameter, at least in C++0x mode.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48138 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2011.06.20 02:20:52 CC||jason at gcc dot gnu.org AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1