This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/69002] C front end should warn about undefined access to atomic structure or union
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Dec 2015 17:28:46 +0000
- Subject: [Bug c/69002] C front end should warn about undefined access to atomic structure or union
- Auto-submitted: auto-generated
- References: <bug-69002-4 at http dot gcc dot gnu dot org/bugzilla/>
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.