microsoft / ifc-spec

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

Divergence between expr.template-reference definition in the specification and .ifc produced by MSVC #90

Closed AndreyG closed 1 year ago

AndreyG commented 1 year ago

The definition of Expression.TemplateReference looks like

struct {
        SourceLocation locus;
        TypeIndex type;
        NameIndex member_name;
        SourceLocation member_locus;
        TypeIndex scope;
        ExprIndex arguments;
}

in the specification right now (sec:ifc:ExprSort:TemplateReference), so its sizeof should be equal 32, but entry_size in the partition "expr.template-reference" produced by MSVC is equal to 28.