Issue 239621
Summary [flang][OpenMP] A misspelled `REQUIRES`/`ASSUMES` directive inside an OpenMP block construct with `-pedantic`: `CHECK(hadDeferredMessages || state.messages().AnyFatalError()) failed at basic-parsers.h(403)`
Labels crash, flang, generated by fuzzer
Assignees
Reporter YuanchengJiang
    The following code:
```fortran
program p
!$omp target
!$omp requiresx
!$omp end target
end
```

Resulted in this output:
```
fatal internal error: CHECK(hadDeferredMessages || state.messages().AnyFatalError()) failed at /root/llvm-project/flang/lib/Parser/basic-parsers.h(403)
```

Trunk reproducer (`-fsyntax-only -fopenmp -pedantic`): https://godbolt.org/z/1K7ez1d63
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to