[odb-users] ODB Compiler v2.5.0-b.27 issue

Boris Kolpackov boris at codesynthesis.com
Tue Oct 29 05:21:52 EDT 2024


OLBINSKI Gracjan <gracjan.olbinski-ext at hexagon.com> writes:

> Quick analysis shown that the issue is correlated with NDEBUG flag
> passed to compiler in release version. Therefore our guess was some
> assertion macro hiding some business logic inside. The following
> patch fix the issue:
> 
> -                assert (l.next (t) == CPP_SCOPE);
> +                cpp_ttype ignore = l.next (t);
> +                assert (ignore == CPP_SCOPE);
>                  continue;

Thanks for the report and the patch, this is quite embarrassing.

I've audited all the calls to assert() in the ODB codebase, and while
there were a few suspicious cases, all except this one turned out to
be ok.

I've committed the fix:

https://git.codesynthesis.com/cgit/odb/odb/commit/?id=3a7727864e3ef603e2dccac259af768c9d9fd454



More information about the odb-users mailing list