This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/62194] Add deadfield attribute to ignore initializers for a structure field
- From: "josh at joshtriplett dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Oct 2014 17:32:47 +0000
- Subject: [Bug c/62194] Add deadfield attribute to ignore initializers for a structure field
- Auto-submitted: auto-generated
- References: <bug-62194-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62194
--- Comment #1 from Josh Triplett <josh at joshtriplett dot org> ---
An additional corner case: a deadfield, even one that has a default value to
allow reads of it to work rather than erroring out, must be an rvalue, so that
attempts to take the address of it fail.