Opened 15 years ago
Closed 12 years ago
#1763 closed Bugs (invalid)
wrong AST when parser_tag==0
| Reported by: | Owned by: | Joel de Guzman | |
|---|---|---|---|
| Milestone: | Boost 1.36.0 | Component: | spirit |
| Version: | Boost 1.35.0 | Severity: | Problem |
| Keywords: | parser_tag ruleId | Cc: |
Description
Simple way to reproduce bug:
- Change 1 to 0(zero) in line 43 of file \spirit\example\fundamental\tree_calc_grammar.hpp
static const int integerID = 1; => static const int integerID = 0;
- Build and run \spirit\example\fundamental\ast_calc.cpp example.
- Enter some expression. For example, 2+3.
There will be assert in line 68 of file ast_calc.cpp.
Change History (2)
comment:1 by , 15 years ago
| Component: | None → spirit |
|---|---|
| Owner: | set to |
comment:2 by , 12 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

This ticket is invalid as the code change explicitly violates one of the invariants of the Spirit AST tree code: all node ids have to be non-zero. The assertion is in place to make sure this invariant is observed.