This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/39616] Stage 2 Werror - trunk revision 145459 - libcpp/identifiers.c:113: error: variably modified 'proxy_assertion_broken' at file scope
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Sep 2016 06:55:33 +0000
- Subject: [Bug target/39616] Stage 2 Werror - trunk revision 145459 - libcpp/identifiers.c:113: error: variably modified 'proxy_assertion_broken' at file scope
- Auto-submitted: auto-generated
- References: <bug-39616-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39616
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
extern char proxy_assertion_broken[offsetof (struct cpp_hashnode, ident) == 0 ?
1 : -1];
offsetof needs to be a constant expression but the openbsd definition is not
(pointer are not part of an integral constant expression). OpenBSD also
disable all use of gcc supplied headers so only a fixincludes can be done but
since that is for a 7 year old OS which is most likely not used any more.