aboutsummaryrefslogtreecommitdiff
path: root/src/go/internal/gccgoimporter/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/internal/gccgoimporter/parser.go')
-rw-r--r--src/go/internal/gccgoimporter/parser.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/go/internal/gccgoimporter/parser.go b/src/go/internal/gccgoimporter/parser.go
index e2ef33f7ae..1b1d07d3f6 100644
--- a/src/go/internal/gccgoimporter/parser.go
+++ b/src/go/internal/gccgoimporter/parser.go
@@ -517,6 +517,13 @@ func (p *parser) parseNamedType(nlist []interface{}) types.Type {
p.errorf("%v has nil type", obj)
}
+ if p.tok == scanner.Ident && p.lit == "notinheap" {
+ p.next()
+ // The go/types package has no way of recording that
+ // this type is marked notinheap. Presumably no user
+ // of this package actually cares.
+ }
+
// type alias
if p.tok == '=' {
p.next()