]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: add dropped line correction again
authorRobert Griesemer <gri@golang.org>
Mon, 16 Nov 2015 21:25:48 +0000 (13:25 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 17 Nov 2015 01:06:11 +0000 (01:06 +0000)
commit662ab8be31d30e250716cc1abd63d6be68563543
treeea94d666fc039e47e38628a0c2ea4eb3ba78af1e
parent48a14663f8066f2643d163cec88f3fd526d08e67
cmd/compile/internal/gc: add dropped line correction again

The line correction when reporting a missing package clause
was removed before since it wasn't clear that it was needed.
Added it again because of issue 13267.

No explicit test case has been added to test/fixedbugs because
it would require a file that contains a single byte and such a
file doesn't fit the existing test harness. Instead documented
the problematic line in the parser for future reference.

Fixes #13267.

Change-Id: I590fe8f358042aab73acf16c2ed9567872b174f4
Reviewed-on: https://go-review.googlesource.com/16975
Reviewed-by: Chris Manghane <cmang@golang.org>
src/cmd/compile/internal/gc/parser.go