From 2d546ca0ac80486b8f31e389ef19e4d65093a1fa Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 24 Feb 2017 00:32:03 +0100 Subject: fixes #5417 --- compiler/semstmts.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/semstmts.nim') diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index e2b0f4b7a..282d4da88 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -30,6 +30,7 @@ proc semBreakOrContinue(c: PContext, n: PNode): PNode = of nkIdent: s = lookUp(c, n.sons[0]) of nkSym: s = n.sons[0].sym else: illFormedAst(n) + s = getGenSym(c, s) if s.kind == skLabel and s.owner.id == c.p.owner.id: var x = newSymNode(s) x.info = n.info -- cgit 1.4.1-2-gfad0