[c++] fold offsetof by hand

Mark Mitchell mark@codesourcery.com
Sun Aug 29 20:59:00 GMT 2004


Richard Henderson wrote:

>Yaye.  This was easier than I thought.  All it takes for C++ is to
>delay resolution in the template case.
>  
>
You should be checking whether or not the expression is dependent, not 
whether or not we are in a template.  Otherwise, we'll get various 
subtle semantics wrong.

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



More information about the Gcc-patches mailing list