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++] fold offsetof by hand


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


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