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 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


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