microsoft / ifc-spec

IFC format specification
Creative Commons Attribution 4.0 International
71 stars 7 forks source link

Representation of aggregate struct initializer #74

Closed AndreyG closed 1 year ago

AndreyG commented 1 year ago
struct X {
    int field;
};

export constexpr X x { 1 };

According to the current state of IFC-spec, initializer of x is ProductTypeValue expression, with .members = ExprSort::SubobjectValue. Unfortunately, structure SubobjectValue is undefined and marked as "scheduled for removal in future releases". So, right now it's impossible to read as basic stuff as aggregate initialization from IFC.