cmd/compile: Go 1.18 (types2 typechecker) doesn't report "channel element type too large" #49771
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
okay-after-beta1
Used by release team to mark a release-blocker issue as okay to resolve either before or after beta1
Milestone
One error message that we are not reporting in Go 1.18 is at least one kind of "channel too large" error. In particular, see
test/fixedbugs/issue42058a.go
andtest/fixedbugs/issue42058b.go
. In Go 1.17 or-G=0
mode, we give errors like:but no errors in Go1.18 default mode (which is why those tests are currently disabled in run.go). This is for statically declared channels whose element are too large.
Looks like there is a separate just-reported issue #49767 for Go 1.17.2 and Go 1.18 that causes a compiler crash when a channel with a too-large element size is created via
make
and a channel type literal.@griesemer @findleyr
Definitely fine for after beta1.
The text was updated successfully, but these errors were encountered: