This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/17743, 19163 (attribute align in templates)
- From: "Benjamin Kosnik" <bkoz at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, jason at redhat dot com
- Date: Fri, 14 Sep 2007 10:49:15 -0500
- Subject: Re: C++ PATCH for c++/17743, 19163 (attribute align in templates)
Jason! This patch is superfly. Thanks for fixing this.
>One possible fix for reuse within the same class is to say that
typedefs with attribute > (aligned) are dependent. Thoughts?
To me, this seem correct, as:
template<typename T>
struct X
{
typedef char layout_type[sizeof(T)]
__attribute__((aligned(__alignof__(T))));
};
X::layout_type is dependent on T's alignof.
-benjamin