Work around clang bug

This commit is contained in:
John Ericson 2020-08-14 18:51:31 +00:00
parent 3c8b5b6219
commit f899a7c6d7

View File

@ -67,7 +67,8 @@ struct CmdShowDerivation : InstallablesCommand
{
auto outputsObj(drvObj.object("outputs"));
for (auto & [outputName, output] : drv.outputs) {
for (auto & [_outputName, output] : drv.outputs) {
auto & outputName = _outputName; // work around clang bug
auto outputObj { outputsObj.object(outputName) };
std::visit(overloaded {
[&](DerivationOutputInputAddressed doi) {