[Bug c/17426] Emit mandatory warning for manual expansions of offsetof
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17426 Eric Gallager changed: What|Removed |Added Blocks||87403 --- Comment #8 from Eric Gallager --- this warning would be new; making it block the relevant meta-bug Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87403 [Bug 87403] [Meta-bug] Issues that suggest a new warning
[Bug c/17426] Emit mandatory warning for manual expansions of offsetof
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17426 Eric Gallager changed: What|Removed |Added Assignee|giovannibajo at gmail dot com |unassigned at gcc dot gnu.org --- Comment #7 from Eric Gallager --- (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.
[Bug c/17426] Emit mandatory warning for manual expansions of offsetof
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17426 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment #6 from Eric Gallager --- (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?
[Bug c/17426] Emit mandatory warning for manual expansions of offsetof
-- What|Removed |Added CC||pinskia at gcc dot gnu dot ||org Last reconfirmed|2004-12-12 01:43:40 |2005-03-13 05:37:56 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17426
[Bug c/17426] Emit mandatory warning for manual expansions of offsetof
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-13 05:38 --- A note here, glibc and a couple of other projects would have been helped by this warning as they have code which uses the manual expansion of offsetof. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17426