Skip to content

cmd/compile: autotmp_* variables make the compiler crash #17240

Closed
@randall77

Description

@randall77
package main
func f(autotmp_foo int) int {
    return autotmp_foo
}

The compiler fails with:

internal compiler error: Treating auto as if it were arg, func f, node autotmp_foo, value v7

We should really keep track of which variables are autos with PAUTO, not with the name.

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions