This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85033] internal compiler error: in fold_offsetof_1, at c-family/c-common.c:6269
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Mar 2018 17:17:25 +0000
- Subject: [Bug c++/85033] internal compiler error: in fold_offsetof_1, at c-family/c-common.c:6269
- Auto-submitted: auto-generated
- References: <bug-85033-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85033
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started to ICE with r82549 when __builtin_offsetof has been introduced.
Wouldn't
error: ‘struct <anonymous>’ has no member named ‘a’
that the C FE emits be better? Or is a still a member of the struct in C++,
just not a non-static data member?
Though, for
int c = __builtin_offsetof(struct S { static int i; }, i);
we emit
error: cannot apply ‘offsetof’ to static data member ‘S::i’
so perhaps your message is more descriptive.