Skip to content

Spec references nonexistant unsafe.Maxalign #1285

Closed
@gjemiller

Description

@gjemiller
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. Look at the section "Size and alignment guarantees" in the golang spec
2. Notice that guarantee #2 assures "unsafe.Alignof(x) is the smaller of
unsafe.Sizeof(x) and unsafe.Maxalign"
3. Notice that the Go libraries contain no such "unsafe.Maxalign"

Which revision are you using?  (hg identify)
(online docs)

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions