[flang][runtime] Fix error message

A literal % character in an error message needs to be doubled
so that it appears in the output of snprintf().

Differential Revision: https://reviews.llvm.org/D132158
This commit is contained in:
Peter Klausler 2022-08-14 10:02:30 -07:00
parent 2c39975d99
commit 3838245dc4
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ static bool HandleComponent(IoStatementState &io, Descriptor &desc,
}
} else {
handler.SignalError("NAMELIST component reference of input group item %s "
"has no name after '%'",
"has no name after '%%'",
name);
}
return false;