Skip to content

gccgo: invalid error message for valid conversion to complex64 #11615

Description

@dvyukov

gccgo rejects the following program:

package a
var a = complex64(6)/774516156475830989403545856475830078125
go.go:2:22: error: complex real part overflow

This program is legal and should be compiled without error messages.
See Robert explanation in #11590.

gcc version 6.0.0 2015070 (experimental) (GCC)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions