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

egallager at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Sep 2 11:38:00 GMT 2018


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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|giovannibajo at gmail dot com      |unassigned at gcc dot gnu.org

--- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #6)
> (In reply to Giovanni Bajo from comment #3)
> > (In reply to comment #2)
> > 
> > > it's only where an integer constant expression is 
> > > required, as in bug 17396 (static array dimension) or for case labels, 
> > > enum values, bit-field widths, null pointer constants, designators for 
> > > array initializers, that there's a problem.
> > 
> > Thanks for the list. I will try to activate the warning in these contexts,
> > but 
> > I do not know the C frontend, so maybe I'll need to do this incrementally.
> > 
> > > 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?
> 
> Are you still working on this?

No reply; taking that as a no.


More information about the Gcc-bugs mailing list