@@ -255,7 +255,7 @@ extern (C++) FuncDeclaration buildOpAssign(StructDeclaration sd, Scope* sc)
255255 }
256256
257257 auto fparams = new Parameters();
258- fparams.push(new Parameter (STC .nodtor, sd.type, Id.p, null ));
258+ fparams.push(new Parameter (STC .nodtor, sd.type, Id.p, null , null ));
259259 auto tf = new TypeFunction(fparams, sd.handleType(), 0 , LINK .d, stc | STC .ref_);
260260 auto fop = new FuncDeclaration(declLoc, Loc.initial, Id.assign, stc, tf);
261261 fop.storage_class |= STC .inference;
@@ -504,7 +504,7 @@ extern (C++) FuncDeclaration buildXopEquals(StructDeclaration sd, Scope* sc)
504504 /* const bool opEquals(ref const S s);
505505 */
506506 auto parameters = new Parameters();
507- parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, null , null ));
507+ parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, null , null , null ));
508508 tfeqptr = new TypeFunction(parameters, Type.tbool, 0 , LINK .d);
509509 tfeqptr.mod = MODFlags.const_;
510510 tfeqptr = cast (TypeFunction)tfeqptr.typeSemantic(Loc.initial, &scx);
@@ -529,8 +529,8 @@ extern (C++) FuncDeclaration buildXopEquals(StructDeclaration sd, Scope* sc)
529529 Loc declLoc; // loc is unnecessary so __xopEquals is never called directly
530530 Loc loc; // loc is unnecessary so errors are gagged
531531 auto parameters = new Parameters();
532- parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, Id.p, null ));
533- parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, Id.q, null ));
532+ parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, Id.p, null , null ));
533+ parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, Id.q, null , null ));
534534 auto tf = new TypeFunction(parameters, Type.tbool, 0 , LINK .d);
535535 Identifier id = Id.xopEquals;
536536 auto fop = new FuncDeclaration(declLoc, Loc.initial, id, STC .static_, tf);
@@ -574,7 +574,7 @@ extern (C++) FuncDeclaration buildXopCmp(StructDeclaration sd, Scope* sc)
574574 /* const int opCmp(ref const S s);
575575 */
576576 auto parameters = new Parameters();
577- parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, null , null ));
577+ parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, null , null , null ));
578578 tfcmpptr = new TypeFunction(parameters, Type.tint32, 0 , LINK .d);
579579 tfcmpptr.mod = MODFlags.const_;
580580 tfcmpptr = cast (TypeFunction)tfcmpptr.typeSemantic(Loc.initial, &scx);
@@ -649,8 +649,8 @@ extern (C++) FuncDeclaration buildXopCmp(StructDeclaration sd, Scope* sc)
649649 Loc declLoc; // loc is unnecessary so __xopCmp is never called directly
650650 Loc loc; // loc is unnecessary so errors are gagged
651651 auto parameters = new Parameters();
652- parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, Id.p, null ));
653- parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, Id.q, null ));
652+ parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, Id.p, null , null ));
653+ parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, Id.q, null , null ));
654654 auto tf = new TypeFunction(parameters, Type.tint32, 0 , LINK .d);
655655 Identifier id = Id.xopCmp;
656656 auto fop = new FuncDeclaration(declLoc, Loc.initial, id, STC .static_, tf);
@@ -757,7 +757,7 @@ extern (C++) FuncDeclaration buildXtoHash(StructDeclaration sd, Scope* sc)
757757 Loc declLoc; // loc is unnecessary so __xtoHash is never called directly
758758 Loc loc; // internal code should have no loc to prevent coverage
759759 auto parameters = new Parameters();
760- parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, Id.p, null ));
760+ parameters.push(new Parameter (STC .ref_ | STC .const_, sd.type, Id.p, null , null ));
761761 auto tf = new TypeFunction(parameters, Type.thash_t, 0 , LINK .d, STC .nothrow_ | STC .trusted);
762762 Identifier id = Id.xtoHash;
763763 auto fop = new FuncDeclaration(declLoc, Loc.initial, id, STC .static_, tf);
@@ -1009,7 +1009,7 @@ private DtorDeclaration buildWindowsCppDtor(AggregateDeclaration ad, DtorDeclara
10091009 // // TODO: if (del) delete (char*)this;
10101010 // return (void*) this;
10111011 // }
1012- Parameter delparam = new Parameter(STC .undefined_, Type.tuns32, Identifier.idPool(" del" ), new IntegerExp(dtor.loc, 0 , Type.tuns32));
1012+ Parameter delparam = new Parameter(STC .undefined_, Type.tuns32, Identifier.idPool(" del" ), new IntegerExp(dtor.loc, 0 , Type.tuns32), null );
10131013 Parameters* params = new Parameters;
10141014 params.push(delparam);
10151015 auto ftype = new TypeFunction(params, Type.tvoidptr, false , LINK .cpp, dtor.storage_class);
0 commit comments