Skip to content

cmd/compile: ICE when StructMake not lowered #74908

Closed

Description

@randall77
package main

type Type struct {
	any
}

type typeObject struct {
	e struct{}
	b *byte
}

func f(b *byte) Type {
	return Type{
		typeObject{
			b: b,
		},
	}

}

Gives the error

tmp6.go:13:2: internal compiler error: 'f': not lowered: v12, StructMake STRUCT STRUCT PTR

This is a problem triggered by CL 681937.

Activity

  1. self-assigned this
    on Aug 6, 2025
  2. gopherbot commented on Aug 6, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/693615 mentions this issue: cmd/compile: allow more args in StructMake folding rule

  3. added a commit that references this issue on Aug 6, 2025
    72e8237
  4. added this to the Go1.26 milestone on Aug 6, 2025
  5. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Aug 6, 2025
  6. gopherbot commented on Oct 23, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/714421 mentions this issue: cmd/compile: allow multi-field structs to be stored directly in interfaces

  7. locked and limited conversation to collaborators on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions