-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.release-blocker
Milestone
Description
Reproducer:
package main
import "fmt"
import "strconv"
func main() {
x, err := strconv.ParseComplex("0_0+0x_0p0i", 128)
if err != nil {
panic(err)
}
fmt.Println(x)
}We just added function ParseComplex to strconv so this is a release blocker.
The problem is in readFloat where we check for underscoreOk for the whole string rather than only the string read so far (atof.go:303).
Fix is trivial, need more tests.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.release-blocker