Skip to content

cmd/compile: overflow in int -> string #11330

Closed
@dvyukov

Description

@dvyukov

Gc rejects to compile the following program:

package a
var a = string(9223372036854775808)

saying:

overflow in int -> string

go/types compile it successfully.

Compilers must agree on whether it is a valid Go program or not.

on commit af81789

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions