Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gccgo: constant map keys can be duplicated #35945

Open
dotaheor opened this issue Dec 3, 2019 · 0 comments
Open

gccgo: constant map keys can be duplicated #35945

dotaheor opened this issue Dec 3, 2019 · 0 comments
Milestone

Comments

@dotaheor
Copy link

@dotaheor dotaheor commented Dec 3, 2019

What version of Go are you using (go version)?

$ gccgo --version
gccgo (Ubuntu 8.3.0-6) 8.3.0

Does this issue reproduce with the latest release?

True

What did you do?

package main

var _ = map[bool]int{false: 0, false: 1}

func main() {}

What did you expect to see?

Fails to compile for duplicated constant keys.

What did you see instead?

Compiles.

@gopherbot gopherbot added this to the Gccgo milestone Dec 3, 2019
@josharian josharian changed the title gccgo: constant map keys can be deplicated gccgo: constant map keys can be duplicated Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.