From a7e762ad762244592d05466b5b14bdec4ff1b13a Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 9 Jul 2018 22:23:38 -0400 Subject: dmd compiles & run fixes (not required by ldc2) - dmd compiles without optimize flag - dmd some variables need re-loading - D version for both is: 2078 (at commit) --- src/sdp/output/paths_source.d | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/sdp/output/paths_source.d b/src/sdp/output/paths_source.d index d04c9f6..ac5e703 100644 --- a/src/sdp/output/paths_source.d +++ b/src/sdp/output/paths_source.d @@ -72,6 +72,7 @@ template PathMatters() { auto _manifest = PodManifest!()(_pth); struct ManifestMatters_ { auto env() { + auto _env = _env; struct Env_ { auto pwd() { return _env["pwd"]; @@ -83,6 +84,7 @@ template PathMatters() { return Env_(); } auto opt() { + auto _opt_actions = _opt_actions; struct Opt_ { auto action() { // redundant return _opt_actions; @@ -151,6 +153,9 @@ template PathMatters() { return Pod_(); } auto src() { + string _fns = _fns; // required here by dmd & not by ldc (for D:2078) + auto _opt_actions = _opt_actions; + auto _env = _env; string _sep = "␣"; struct SRC_ { auto is_pod() { @@ -330,6 +335,8 @@ template PathMatters() { return SRC_(); } auto output() { + auto _opt_actions = _opt_actions; + auto _env = _env; struct Out_ { auto path() { auto _output_path = _env["pwd"]; -- cgit v1.2.3