parser: Report error only for private instance fields in structs

Fixes bug 734787