GP-1123 Check for name collision when creating placeholder structure

This commit is contained in:
caheckman
2023-02-09 16:36:23 -05:00
parent bb79314d85
commit 51b1b51d89
4 changed files with 54 additions and 24 deletions
@@ -516,6 +516,9 @@ public class FillOutStructureCmd extends BackgroundCommand {
return null;
}
Structure structDT = VariableUtilities.findOrCreateClassStruct(f);
if (structDT == null) {
return null;
}
// FIXME: How should an existing packed structure be handled? Growing and offset-based placement does not apply
int len = structDT.isZeroLength() ? 0 : structDT.getLength();
if (len < size) {