[Bug c/69002] C front end should warn about undefined access to atomic structure or union

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 21 17:28:00 GMT 2015


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-12-21
     Ever confirmed|0                           |1
      Known to fail|                            |4.9.3, 5.1.0, 6.0

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
You're right.  I misunderstood the problem you are pointing out.  Not the
initialization but the access to a member of an atomic struct (I still haven't
paged the initialization stuff out of my brain.)  I agree that access to a
member of an atomic struct deserves a diagnostic (sorry for confusing things!)
and confirm the absence of it in currently supported GCC versions.


More information about the Gcc-bugs mailing list