This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] [PR19163] Fix attribute aligned on dependent arraytypes


Mark Mitchell wrote:

What we really want is a mechanism for storing up attributes on template declarations and applying them (perhaps after substitution) to template instantiations. I'm not sure that anything short of that solution makes sense.

Mark, being the submitter of the PR, thanks in any case for your interest in the issue, which, I believe, is of much more general importance than just tr1. I trust you about the general assessment and I'm confident that post-4.0 a general, appropriate, fix will be prepared by you and other C++ front-end hackers (same for c++/19076 ;)


In the meanwhile, for 4.0, as far as tr1::type_traits::aligned_storage is concerned, probably I can devise a work-around, as per the implementation note 4.8, thus using __alignof__...

Paolo.

P.S. Of course many thanks to Giovanni too, for his prompt willingness to help.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]