This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/85033] internal compiler error: in fold_offsetof_1, at c-family/c-common.c:6269


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]