From d127ed53784bf8a6e376904af163b58a78179dd2 Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Fri, 18 Jan 2013 22:36:43 +0100 Subject: cmd/gc, cmd/6g: fix error on large stacks. Fixes #4666. R=golang-dev, daniel.morsing, rsc CC=golang-dev https://golang.org/cl/7141047 --- test/fixedbugs/bug385_64.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/fixedbugs/bug385_64.go') diff --git a/test/fixedbugs/bug385_64.go b/test/fixedbugs/bug385_64.go index 8c7b9d5208..f8ccb42a9b 100644 --- a/test/fixedbugs/bug385_64.go +++ b/test/fixedbugs/bug385_64.go @@ -8,11 +8,17 @@ // license that can be found in the LICENSE file. // Issue 2444 +// Issue 4666: issue with arrays of exactly 4GB. package main -func main() { // ERROR "stack frame too large" + +func main() { // ERROR "stack frame too large" var arr [1000200030]int32 arr_bkup := arr _ = arr_bkup } +func F() { // ERROR "stack frame too large" + var arr [1 << 30]int32 + _ = arr[42] +} -- cgit v1.3