semantic3.d (dmd-2.094.1) | : | semantic3.d (dmd-2.094.2) | ||
---|---|---|---|---|
skipping to change at line 1473 | skipping to change at line 1473 | |||
sc2.pop(); | sc2.pop(); | |||
// don't do it for unused deprecated types | // don't do it for unused deprecated types | |||
// or error ypes | // or error ypes | |||
if (!ad.getRTInfo && Type.rtinfo && (!ad.isDeprecated() || global.params .useDeprecated != DiagnosticReporting.error) && (ad.type && ad.type.ty != Terror )) | if (!ad.getRTInfo && Type.rtinfo && (!ad.isDeprecated() || global.params .useDeprecated != DiagnosticReporting.error) && (ad.type && ad.type.ty != Terror )) | |||
{ | { | |||
// Evaluate: RTinfo!type | // Evaluate: RTinfo!type | |||
auto tiargs = new Objects(); | auto tiargs = new Objects(); | |||
tiargs.push(ad.type); | tiargs.push(ad.type); | |||
auto ti = Pool!TemplateInstance.make(ad.loc, Type.rtinfo, tiargs); | auto ti = new TemplateInstance(ad.loc, Type.rtinfo, tiargs); | |||
Scope* sc3 = ti.tempdecl._scope.startCTFE(); | Scope* sc3 = ti.tempdecl._scope.startCTFE(); | |||
sc3.tinst = sc.tinst; | sc3.tinst = sc.tinst; | |||
sc3.minst = sc.minst; | sc3.minst = sc.minst; | |||
if (ad.isDeprecated()) | if (ad.isDeprecated()) | |||
sc3.stc |= STC.deprecated_; | sc3.stc |= STC.deprecated_; | |||
ti.dsymbolSemantic(sc3); | ti.dsymbolSemantic(sc3); | |||
ti.semantic2(sc3); | ti.semantic2(sc3); | |||
ti.semantic3(sc3); | ti.semantic3(sc3); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |