aboutsummaryrefslogtreecommitdiffstats
path: root/sysparser
diff options
context:
space:
mode:
Diffstat (limited to 'sysparser')
-rw-r--r--sysparser/lexer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysparser/lexer.go b/sysparser/lexer.go
index 06210a584..18143c901 100644
--- a/sysparser/lexer.go
+++ b/sysparser/lexer.go
@@ -93,6 +93,9 @@ func Parse(in io.Reader) *Description {
}
fields := make(map[string]bool)
for _, f := range str.Flds {
+ if f[0] == "parent" {
+ failf("struct/union %v contains reserved field 'parent'", str.Name)
+ }
if fields[f[0]] {
failf("duplicate field %v in struct/union %v", f[0], str.Name)
}