This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17426] Emit mandatory warning for manual expansions of offsetof
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2004 13:29:34 -0000
- Subject: [Bug c/17426] Emit mandatory warning for manual expansions of offsetof
- References: <20040912013748.17426.giovannibajo@libero.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-09-12 13:29 -------
(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?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17426