This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36625] missing diagnostic on invalid __attribute__((aligned(N)))
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2008 23:47:34 -0000
- Subject: [Bug c++/36625] missing diagnostic on invalid __attribute__((aligned(N)))
- References: <bug-36625-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-06-24 23:47 -------
I think this is valid thing to do with aligned attribute. On the trunk we just
get:
t.cc: In instantiation of 'A<123>::S':
t.cc:10: instantiated from here
t.cc:3: error: requested alignment is not a constant
I think we forgot to change the template argument here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36625