This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48138] __attribute__((aligned)) should give an error when applied to a typedef or template parameter, at least in C++0x mode.
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Jun 2011 14:42:42 +0000
- Subject: [Bug c++/48138] __attribute__((aligned)) should give an error when applied to a typedef or template parameter, at least in C++0x mode.
- Auto-submitted: auto-generated
- References: <bug-48138-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48138
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 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