[Bug c/62194] Add deadfield attribute to ignore initializers for a structure field

josh at joshtriplett dot org gcc-bugzilla@gcc.gnu.org
Mon Oct 27 18:18:00 GMT 2014


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

--- Comment #2 from Josh Triplett <josh at joshtriplett dot org> ---
One alternative implementation: if GCC supported a "property" attribute,
specifying (optional) functions to get or set the property (with compile-time
errors if attempting to get/set a property for which the corresponding function
does not exist), that would completely address this issue as well: just define
a no-op setter and either a constant or non-existent getter.



More information about the Gcc-bugs mailing list