https://bugs.kde.org/show_bug.cgi?id=438249

--- Comment #23 from Igor Kushnir <igor...@gmail.com> ---
> Hah, good point. The assert fails on clang-13 as well when built with DEBUG.
> Probably on 13 it just happened to return some junk instead of crashing.
What bit width does it return?

> Perhaps clang::FieldDecl::getBitWidthValue() should check if the bit width is 
> value-dependent before calling Expr::EvaluateKnownConstInt().
> Or perhaps clang_getFieldDeclBitWidth() should check that.
You can attempt to fix the bug yourself with placing a check in one of these
two functions.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to