]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: reject p-notation floats in Go source files
authorDavid Chase <drchase@google.com>
Wed, 27 May 2015 21:33:46 +0000 (17:33 -0400)
committerDavid Chase <drchase@google.com>
Thu, 28 May 2015 18:52:14 +0000 (18:52 +0000)
commit596bb76248dd7844ba3bebcdeab9a7c42ef5855a
tree6f07557b7ea08e1d324e7b961d2e3471187156b1
parentbd8bb6735765653b29c672d724eaf80a477d1eba
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/10450
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/lex.go
test/fixedbugs/issue9036.go [new file with mode: 0644]