Commit 48af64b2 authored by Daniel Morsing's avatar Daniel Morsing

cmd/gc: Mark use of builtin functions as calls.

Fixes #4097.

R=rsc
CC=golang-dev, gri
https://golang.org/cl/6749059
parent 3dbbb6eb
......@@ -245,6 +245,12 @@ callrecv(Node *n)
case OCALLINTER:
case OCALLFUNC:
case ORECV:
case OCAP:
case OLEN:
case OCOPY:
case ONEW:
case OAPPEND:
case ODELETE:
return 1;
}
......
// errorcheck
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package foo
var s [][10]int
const m = len(s[len(s)-1]) // ERROR "must be constant"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment