This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [c++] fold offsetof by hand
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 29 Aug 2004 12:24:43 -0700
- Subject: Re: [c++] fold offsetof by hand
- Organization: CodeSourcery, LLC
- References: <20040827215054.GA26420@redhat.com>
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