I found out recently that clang has a '-Wunused-private-field' warning. E.g., I got: https://github.com/mozilla/rr/pull/1757#issuecomment-237031428 I think it would be good to add this to gcc.
Confirming as an enhancement.
*** Bug 87409 has been marked as a duplicate of this bug. ***