cmd/compile: reject p-notation floats in Go source files
Use pkgimport == nil (or not) to distinguish between parsing .go source files where "p" exponent specifier is not allowed and parsing .a or .o export data where it is. Use that to control error when p-exponent is seen. Fixes #9036 Change-Id: I8924f09c91d4945ef3f20e80a6e544008a94a7e4 Reviewed-on: https://go-review.googlesource.com/10450Reviewed-by:Russ Cox <rsc@golang.org>
Showing
test/fixedbugs/issue9036.go
0 → 100644
Please
register
or
sign in
to comment