summaryrefslogtreecommitdiff
path: root/src/cmd/gc/yerr.h
diff options
context:
space:
mode:
authorR?my Oudompheng <oudomphe@phare.normalesup.org>2012-12-06 08:09:17 +0100
committerR?my Oudompheng <oudomphe@phare.normalesup.org>2012-12-06 08:09:17 +0100
commit6ab047fa271d18f750b48a00c604e29f9f8c28b2 (patch)
tree5471ea3cf5fc93403ae0f7ada5d4420cb5779d26 /src/cmd/gc/yerr.h
parent07fe7ed437f8d73f09c04de46ca9898ac1d6d310 (diff)
downloadgo-6ab047fa271d18f750b48a00c604e29f9f8c28b2.tar.gz
cmd/gc: do not overflow parser stack on a long chain of else if.
Fixes issue 2615. R=dave, minux.ma, iant, daniel.morsing, rsc CC=golang-dev https://codereview.appspot.com/6847078
Diffstat (limited to 'src/cmd/gc/yerr.h')
-rw-r--r--src/cmd/gc/yerr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/yerr.h b/src/cmd/gc/yerr.h
index 256c48b0e..ff8410ba0 100644
--- a/src/cmd/gc/yerr.h
+++ b/src/cmd/gc/yerr.h
@@ -71,6 +71,6 @@ static struct {
112, LNAME,
"nested func not allowed",
- 615, ';',
+ 639, ';',
"else must be followed by if or statement block"
};