You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
griesemer
changed the title
go/types: accepts floating point literals with no decimals after E
go/parser: accepts floating point literals with no decimals after E
Oct 26, 2016
griesemer
changed the title
go/parser: accepts floating point literals with no decimals after E
go/scanner: accepts floating point literals with no decimals after E
Oct 26, 2016
gccgo also rejects this code. gc and gccgo are correct. From the spec's floating-point literal definition:
exponent = ( "e" | "E" ) [ "+" | "-" ] decimals .
cc @mdempsky @griesemer
Found using go-fuzz (@dvyukov).
The text was updated successfully, but these errors were encountered: