http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56859


Ruben Van Boxem <vanboxem.ruben at gmail dot com> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |vanboxem.ruben at gmail dot

                   |                            |com



--- Comment #3 from Ruben Van Boxem <vanboxem.ruben at gmail dot com> 
2013-04-24 19:09:57 UTC ---

Another simple case that fails (even without instantiation) is:



template<size_type size, size_type alignment>

struct aligned_storage

{

  using type = struct { alignas(alignment) unsigned char data[size]; };

};



from http://en.cppreference.com/w/cpp/types/aligned_storage



The error is:



error: requested alignment is not an integer constant

     using type = struct { alignas(alignment) unsigned char data[size]; };

                                                                     ^

Reply via email to