Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gccgo: does not detect missing return #11591

@dvyukov

Description

@dvyukov

gccgo successfully compiles the following program:

package a
func f() int { for{}; _:}

while both gc and go/types reject it with missing return.
gcc version 6.0.0 2015070 (experimental) (GCC)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions