]> granicus.if.org Git - re2c/commit
Fixed bug #145 "Values for enum YYCONDTYPE are not generated
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 24 Jun 2016 21:46:16 +0000 (22:46 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 24 Jun 2016 21:46:16 +0000 (22:46 +0100)
commitd1b118187bd6a7af92cbb5906b755f743d8cf7ff
tree2b7094642ec76b10f066ef6d8b8a7b701298d039
parent54711f61242c4ff4a744ab33d4cb5a3530ddcf02
Fixed bug #145 "Values for enum YYCONDTYPE are not generated
when default rules with conditions are used".

Default rule is handled in a special (delayed) way;
re2c uses different code for default rule than for normal rules.
This special code simply forgot to add condition name to the list
of conditions.

Thanks to sirzooro for bug report.
re2c/bootstrap/src/parse/lex.cc
re2c/bootstrap/src/parse/parser.cc
re2c/src/parse/parser.ypp
re2c/test/bug145.ci.c [new file with mode: 0644]
re2c/test/bug145.ci.re [new file with mode: 0644]
re2c/test/default_dup_star_1.ic.c
re2c/test/reuse_conds_default_1.cgir--skeleton.c
re2c/test/reuse_conds_default_1.cgir.c