[flang] convert name to lowercase

Original-commit: flang-compiler/f18@f591d31ab4
Reviewed-on: https://github.com/flang-compiler/f18/pull/170
Tree-same-pre-rewrite: false
This commit is contained in:
Eric Schweitz 2018-09-06 15:03:03 -07:00 committed by GitHub
parent b3a87d4e27
commit 6265aed20e
1 changed files with 2 additions and 2 deletions

View File

@ -607,9 +607,9 @@ private:
// C1134, C1166
template<typename A>
void CheckLabelContext(const char *const stmtString, const A &constructName) {
const auto I{std::find(
const auto iter{std::find(
constructNames_.crbegin(), constructNames_.crend(), constructName)};
if (I == constructNames_.crend()) {
if (iter == constructNames_.crend()) {
errorHandler_.Say(currentPosition_,
parser::MessageFormattedText{
"%s construct-name '%s' is not in scope"_err_en_US, stmtString,