This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Protect Record creation against infinite recusion
ClosedPublic

Authored by tbaeder on Oct 27 2022, 3:09 AM.

Details

Summary

This only happens in error cases as far as I know, e.g. the attached test case.

Diff Detail

Event Timeline

tbaeder created this revision.Oct 27 2022, 3:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2022, 3:09 AM
tbaeder requested review of this revision.Oct 27 2022, 3:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2022, 3:09 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Oct 27 2022, 6:39 AM
shafik accepted this revision.Oct 27 2022, 9:05 PM

LGTM

clang/test/AST/Interp/records.cpp
144

How about static constexpr B* bp=nullptr;

This revision was landed with ongoing or failed builds.Nov 10 2022, 11:38 PM
This revision was automatically updated to reflect the committed changes.