See: https://github.com/doxygen/doxygen/issues/12118 Fixed upstream in commit: https://github.com/doxygen/doxygen/commit/a9eb9243717b93a44dbd046cccd52b96bd7520d2 diff --git a/src/dotrunner.cpp b/src/dotrunner.cpp index 63f72d4cbf..c359568115 100644 --- src/dotrunner.cpp.orig +++ src/dotrunner.cpp @@ -397,14 +397,15 @@ bool DotRunner::run(const DotJobs &dotJobs) { if (cmd.numDotFiles>0) { - auto process = [this,cmd,dirStr]() -> size_t + std::string locDirStr = dirStr; + auto process = [this,cmd,locDirStr]() -> size_t { int exitCode; if ((exitCode = Portable::system(m_dotExe, cmd.arguments, FALSE)) != 0) { err_full(cmd.firstJob->srcFile, 1, "Problems running dot: exit code={}, command='{}', dir='{}', arguments='{}'", - exitCode, m_dotExe, dirStr, cmd.arguments); + exitCode, m_dotExe, locDirStr, cmd.arguments); } return cmd.numDotFiles; };