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

Closed
dotaheor opened this issue Dec 3, 2019 · 1 comment
Closed

gccgo: constant map keys can be duplicated #35945

dotaheor opened this issue Dec 3, 2019 · 1 comment
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@dotaheor
Copy link

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
@ianlancetaylor ianlancetaylor added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label 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
@dotaheor
Copy link
Author

Looks this is a dup of #28104. Closed for that one.

@golang golang locked and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants