diff --git a/Rez/RezParser.yy b/Rez/RezParser.yy index 1ed2c184bc..4cd8432456 100644 --- a/Rez/RezParser.yy +++ b/Rez/RezParser.yy @@ -443,7 +443,7 @@ resource_attributes : %empty { $$ = [](ResSpec s){ return s; }; } ; %type resource_body resource_body1; -resource_body : %empty { $$ = std::make_shared(@1); } +resource_body : %empty { $$ = std::make_shared(yy::location()); } | resource_body1 { $$ = $1; $$->location = @1; } ; resource_body1 : resource_item { $$ = std::make_shared(@1); $$->addItem($1); }