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: PR 23896


Andrew Pinski wrote:
> 
> On Sep 15, 2005, at 9:52 PM, Mark Mitchell wrote:
> 
>>
>> This patch fixes yet another problem with static data members in
>> templates.  When substituting into "sizeof (S<I>::x)" we need to
>> remember to evaluate "I", even though we don't need to evaluate
>> "S<I>::x".
> 
> 
> Just to double check, does this also fix the __alignof__ case too?

Yes.

> Maybe that testcase should also go on the mainline.

I don't think that's necessary; we handle sizeof and __alignof__
essentially identically.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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