Browse Source

Fix HasDependentValueFieldInLayout stack overflow

dev
josetr 3 years ago
parent
commit
c1b3a1e4d4
  1. 1
      src/AST/ClassExtensions.cs

1
src/AST/ClassExtensions.cs

@ -257,6 +257,7 @@ namespace CppSharp.AST
s => s.Layout.Fields.Any( s => s.Layout.Fields.Any(
f => f.QualifiedType.Type.TryGetDeclaration( f => f.QualifiedType.Type.TryGetDeclaration(
out ClassTemplateSpecialization specialization) && out ClassTemplateSpecialization specialization) &&
@class != specialization.TemplatedDecl.TemplatedClass &&
specialization.TemplatedDecl.TemplatedClass.HasDependentValueFieldInLayout()))); specialization.TemplatedDecl.TemplatedClass.HasDependentValueFieldInLayout())));
public static IEnumerable<Property> GetConstCharFieldProperties(this Class @class) => public static IEnumerable<Property> GetConstCharFieldProperties(this Class @class) =>

Loading…
Cancel
Save