This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH to cp/decl.c: Timing name lookup
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Jason Merrill <jason at redhat dot com>, "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, <gdr at integrable-solutions dot net>, <gcc-patches at gcc dot gnu dot org>, <pinskia at physics dot uc dot edu>
- Date: Fri, 14 Feb 2003 00:18:55 +0000 (GMT)
- Subject: Re: C++ PATCH to cp/decl.c: Timing name lookup
On Thu, 13 Feb 2003, Zack Weinberg wrote:
> People definitely use offsetof() in initializers, and glibc
offsetof() needs to be a full integer constant expression (using
__constant_expression__) as the standard requires this.
> stdio-common/vfprintf.c has a huge static table of initializers of the
> form &&label2 - &&label1.
I'd hope such tables can change to using __constant_expression__ (with an
appropriate macro definition for older GCC) rather than requiring GCC to
keep additional types of constant expressions beyond the single extension
(__constant_expression__(EXPR), "treat this expression as a constant
expression if it can be folded") needed to make offsetof constant.
--
Joseph S. Myers
jsm28@cam.ac.uk