Skip to content

Commit

Permalink
parser: Fixed parsing of anonymous placements inside of structs and u…
Browse files Browse the repository at this point in the history
…nions
  • Loading branch information
WerWolv committed Jan 19, 2025
1 parent 4e74b70 commit e6a7b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/source/pl/core/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ namespace pl::core {
errorDesc("Cannot mark placed variable as 'const'.", "Variables placed in memory are always implicitly const.");
}

auto variableName = getValue<Token::Identifier>(-2).get();
std::string variableName = memberIdentifier == nullptr ? "" : memberIdentifier->get();

if (memberIdentifier != nullptr) {
if (m_currTemplateType.empty())
Expand Down

0 comments on commit e6a7b18

Please sign in to comment.