Opened 7 years ago

Last modified 5 years ago

#11743 new Bugs

json parser cannot be compiled with -DNDEBUG

Reported by: Marco Clemencic <marco.clemencic@…> Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost 1.59.0 Severity: Regression
Keywords: Cc:

Description

In include/boost/property_tree/detail/json_parser/standard_callbacks.hpp, standard_callbacks::new_tree make use of assert when error conditions are detected.

Unfortunately, when -DNDEBUG is used during compilation, assert calls disappear, thus making the code of standard_callbacks::new_tree incorrect.

We spot the problem thanks to the option -Werror=return-type that fired when hitting the end of standard_callbacks::new_tree seeing that there was not return statement.

Change History (1)

comment:1 by thomas.barbier@…, 5 years ago

I am also interested in this issue. I see that it is marked as regression: by any chance do you know which version we can use that does not have this bug?

Note: See TracTickets for help on using tickets.