g++-4.3 alignas(const-expr) fails; workaround?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With g++-4.3-20070323, alignas(2) fails compile with
message indicating it needs a type instead of
constant expression.  Is there any workaround.
For example, could I:

 typedef unsigned char work_around[const-expr];
 unsigned char alignas(work_around) actual_var[const-expr]

?
TIA.

-Larry


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux