https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103113

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-11-07
             Status|UNCONFIRMED                 |NEW
      Known to fail|                            |6.1.0

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Before GCC 6, GCC would produce:
<source>: In function 'f':
<source>:3:10: error: request for member 'm' in something not a structure or
union
  return x->m;
          ^

Which is slightly better than now but still bad.

Anyways confirmed.

Note clang produces:
<source>:3:10: error: member reference base type 'struct (unnamed struct at
<source>:2:2) *' is not a structure or union
        return x->m;
               ~^ ~

Which is similar to GCC 5- error message.

Reply via email to