File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ bool Prescanner::MustSkipToEndOfLine() const {
557557 return true ; // skip over ignored columns in right margin (73:80)
558558 } else if (*at_ == ' !' && !inCharLiteral_ &&
559559 (!inFixedForm_ || tabInCurrentLine_ || column_ != 6 )) {
560- return !IsCompilerDirectiveSentinel (at_ + 1 );
560+ return InCompilerDirective () || !IsCompilerDirectiveSentinel (at_ + 1 );
561561 } else {
562562 return false ;
563563 }
Original file line number Diff line number Diff line change 1+ ! RUN: %flang_fc1 -fdebug-unparse -fopenmp %s 2>&1 | FileCheck %s --match-full-lines
2+
3+ subroutine func
4+ implicit none
5+ ! CHECK: !$OMP NOTHING
6+ ! $omp nothing !$omp Cannot nest directives inside directives; must be interpreted as a comment
7+ end subroutine func
You can’t perform that action at this time.
0 commit comments