object-introspection icon indicating copy to clipboard operation
object-introspection copied to clipboard

Incomplete raw pointers fail codegen for OID but succeed for OIL

Open JakeHillion opened this issue 3 years ago • 2 comments

test/integration/pointers_incomplete.toml contains tests for which OIL successfully codegens but OID does not. This is unusual as most of the code path is the same. The affected tests are:

  • OidIntegration.pointers_incomplete_raw_no_follow (has no oil equivalent but if enabled it passes)
  • OidIntegration.pointers_incomplete_raw_no_follow
  • OidIntegration.pointers_incomplete_raw_null

JakeHillion avatar Dec 30 '22 20:12 JakeHillion

Probably related to #19

JakeHillion avatar Jan 04 '23 12:01 JakeHillion

No longer failing with codegen-v2, but the results are weird: in the top level case (IncompleteStruct*) you get an entry for the IncompleteStruct, but with other cases like std::unique_ptr<IncompleteStruct> you get an entry for the std::unique_ptr but no entry for the IncompleteStruct.

JakeHillion avatar Jan 12 '24 21:01 JakeHillion