------- Comment #4 from sam at gcc dot gnu dot org 2008-09-23 11:32 ------- I don't agree with your reasoning: X is not referenced. The fact that it has a constructor should not change anything. For example, access types are initialized to Null as well, so you could count that as a reference.
You can suppress the warning by using pragma Unreferenced (X); -- sam at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sam at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37620