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.

Reply via email to