Skip to content

Add regression test: Assertion failure in array bounds inference on array subscript in multi-variable declaration #415

Open
@john-h-kastner

Description

@john-h-kastner

For example this function and the corresponding error text:

void h(int *a) {
  int i, j = a[0];
}
3c: /home/cc/checkedc-clang/clang/lib/3C/ArrayBoundsInferenceConsumer.cpp:836: void LengthVarInference::VisitArraySubscriptExpr(clang::ArraySubscriptExpr*): Assertion `CurBB != nullptr && "Array dereference does not belong " "to any basic block"' failed.

This error affects the -alltypes conversion of Lua.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions