diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-09-04 19:52:55 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-09-04 20:25:22 +0200 |
| commit | 54a92e90e0cfa9637bb5c4db4ffb4392e22705d5 (patch) | |
| tree | 4482ab8f74c449b9afd9a97ab8c20b3604815fe4 /pkg/compiler/check.go | |
| parent | 740662e03a9abc235689531ec363c852f3f1b21c (diff) | |
pkg/compiler: prohibit bitfields in syscall args
Diffstat (limited to 'pkg/compiler/check.go')
| -rw-r--r-- | pkg/compiler/check.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/compiler/check.go b/pkg/compiler/check.go index 7510429d9..5a3dea450 100644 --- a/pkg/compiler/check.go +++ b/pkg/compiler/check.go @@ -404,7 +404,7 @@ func (comp *compiler) checkType(t *ast.Type, isArg, isRet, isResourceBase bool) comp.error(t.Pos, "unknown type %v", t.Ident) return } - if !desc.AllowColon && t.HasColon { + if t.HasColon && (!desc.AllowColon || isArg) { comp.error(t.Pos2, "unexpected ':'") return } |
