This is the mail archive of the
mailing list for the GCC project.
Re: [C++ PATCH] [PR19163] Fix attribute aligned on dependent arraytypes
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Giovanni Bajo <giovannibajo at libero dot it>,Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 03 Jan 2005 23:00:12 +0100
- Subject: Re: [C++ PATCH] [PR19163] Fix attribute aligned on dependent arraytypes
- References: <022201c4ec60$62d4b820$394e2597@bagio> <20041227225753.GC5386@redhat.com> <031101c4ecc7$b1c21470$394e2597@bagio> <41D9A1B1.firstname.lastname@example.org>
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__...
P.S. Of course many thanks to Giovanni too, for his prompt willingness