Skip to content

go/types, types2: adjust type checking of string(1 << s) pending issue #45114 #45117

Closed
@griesemer

Description

@griesemer

Reminder issue: Currently both go/types and types2 accept string(1 << s) while the compilers don't.

For details see #45114.

cc: @findleyr

Activity

added
NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.
on Mar 19, 2021
added this to the Backlog milestone on Mar 19, 2021
self-assigned this
on Mar 19, 2021
griesemer

griesemer commented on Mar 19, 2021

@griesemer
ContributorAuthor

If we disallow this, re-enable the disabled test in test/fixedbugs/bug193.go.

gopherbot

gopherbot commented on Mar 19, 2021

@gopherbot
Contributor

Change https://golang.org/cl/303094 mentions this issue: test: enable fixedbugs/bug193.go for -G compiler option

added
NeedsFixThe path to resolution is known, but the work has not been done.
and removed
NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.
on Jan 18, 2022
modified the milestones: Backlog, Go1.18 on Jan 18, 2022
gopherbot

gopherbot commented on Jan 18, 2022

@gopherbot
Contributor

Change https://golang.org/cl/379256 mentions this issue: go/types, types2: report error for invalid string(1 << s)

gopherbot

gopherbot commented on Jan 19, 2022

@gopherbot
Contributor

Change https://golang.org/cl/379274 mentions this issue: cmd/compile/internal/types2: use orig. compiler error message for a shift error

7 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @griesemer@gopherbot

        Issue actions

          go/types, types2: adjust type checking of string(1 << s) pending issue #45114 · Issue #45117 · golang/go