A character in a fixed-form source line (as opposed to a comment or compiler directive) can't have a non-digit in its label field, columns 1 through 5. The prescanner presently emits only a warning for this case. Retain the warning for -E output, but otherwise diagnose an error. (This change affected a number of tests that relied on this situation being a warning just so that they could test prescanner warnings, and those tests were adjusted to use another warning.) Fixes https://github.com/llvm/llvm-project/issues/50563.
5 lines
152 B
Fortran
5 lines
152 B
Fortran
!RUN: not %flang -fsyntax-only %s 2>&1 | FileCheck %s
|
|
!CHECK: bug50563.f:3:1: error: Character in fixed-form label field must be a digit
|
|
pi=3
|
|
end
|