Report an error when parsing non-public struct fields

Fixes bug 683413