Source file test/fixedbugs/issue77435.go
1 // compile 2 3 // Copyright 2026 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 // Issue 77435: compiler crash on clear of map resulting 8 // from a map lookup (or some other syntax that is 9 // non-idempotent during walk). 10 11 package p 12 13 func f(s map[int]map[int]int) { 14 clear(s[0]) 15 } 16