This is the mail archive of the gcc-bugs@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]

[Bug c/17426] Emit mandatory warning for manual expansions of offsetof


------- Additional Comments From jsm at polyomino dot org dot uk  2004-09-12 14:30 -------
Subject: Re:  Emit mandatory warning for manual expansions of
 offsetof

On Sun, 12 Sep 2004, giovannibajo at libero dot it wrote:

> > fits the long-established 
> > GCC extension of symbolic difference constant expressions if being used in 
> > a static initializer
> 
> This could be a pedwarn, then, right?

A pedwarn for uses where integer constant expressions are required.  The 
intention as described in my proposed formal models is that symbolic 
difference constant expressions are an implementation-defined other kind 
of constant expression acceptable in initializers, i.e. not diagnosed 
there.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17426


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