Skip to content

cmd/compile: internal compiler error: untyped type mismatch, have: untyped float, want: untyped int #41680

@ianlancetaylor

Description

@ianlancetaylor

On current tip (874b313, CL 247477) this valid code gets an incorrect compilation error.

I believe this is due to CL 255217. CC @cuonglm @mdempsky

package p

func F(s string) bool {
	const m = 16
	const n = 1e5
	_ = make([]int, n)
	return len(s) < n*m
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.release-blocker

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions