------- 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 ()
{
A<123>::S s;
}
--
sebor at roguewave dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|missing diagnostic on |bogus error on
|invalid |__attribute__((aligned(N)))
|__attribute__((aligned(N))) |in template code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36625