go/types: int overflow in switch expression (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

golang / go Public

Additional navigation options

New issue

New issue

Closed

Closed

go/types: int overflow in switch expression

#11667

Labels

FrozenDueToAge

Milestone

Go1.6

@dvyukov

Description

@dvyukov

dvyukov

opened

on Jul 11, 2015

gotype successfully compiles the following program:

package a func f() { switch 9223372036854775808 { } }

gc rejects it with:

go.go:3: constant 9223372036854775808 overflows int

gc seems to be right.

on commit af81789

Metadata

Metadata

Assignees

No one assigned

Labels

FrozenDueToAge

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions