diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/grammar.y b/Ghidra/Features/Decompiler/src/decompile/cpp/grammar.y index 2d1f2ad967..70fc90a27a 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/grammar.y +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/grammar.y @@ -1037,7 +1037,7 @@ Datatype *CParse::newStruct(const string &ident,vector *declis sublist.back().offset = -1; // Let typegrp figure out offset } - if (!glb->types->setFields(sublist,res,-1)) { + if (!glb->types->setFields(sublist,res,-1,0)) { setError("Bad structure definition"); glb->types->destroyType(res); return (Datatype *)0;