diff options
author | V Donaldson <vdonaldson@nvidia.com> | 2022-01-04 10:34:07 -0800 |
---|---|---|
committer | V Donaldson <vdonaldson@nvidia.com> | 2022-01-04 10:34:07 -0800 |
commit | 5244bb18abbf70d2f4475fa8facb34d4d8af0d32 (patch) | |
tree | 6559dcb2fb92914266d65a49d214d5326c81d033 /flang/include/flang/Common/format.h | |
parent | b061d86c6930acef1b246874adf2f11e9120894c (diff) | |
download | llvm-5244bb18abbf70d2f4475fa8facb34d4d8af0d32.tar.gz |
Modify an IO format error messagevkd1
F18 constraint C1308 is:
For the G edit descriptor, e shall not be specified if w is zero.
For an edit descriptor such as 'G0.2E4', change the error message from:
error: Unexpected 'e' in 'G0' edit descriptor
To:
error: A 'G0' edit descriptor must not have an 'e' value
Diffstat (limited to 'flang/include/flang/Common/format.h')
-rw-r--r-- | flang/include/flang/Common/format.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/flang/include/flang/Common/format.h b/flang/include/flang/Common/format.h index e38ea6b0dfed..7ca3faa79f29 100644 --- a/flang/include/flang/Common/format.h +++ b/flang/include/flang/Common/format.h @@ -606,8 +606,8 @@ template <typename CHAR> bool FormatValidator<CHAR>::Check() { check_e(); } } else if (token_.kind() == TokenKind::Point && check_d() && - token_.kind() == TokenKind::E) { - ReportError("Unexpected 'e' in 'G0' edit descriptor"); // C1308 + token_.kind() == TokenKind::E) { // C1308 + ReportError("A 'G0' edit descriptor must not have an 'e' value"); NextToken(); if (token_.kind() == TokenKind::UnsignedInteger) { NextToken(); |