passlab / ompparser

ompparser: A Standalone and Unified OpenMP Parser
https://github.com/passlab/ompparser
Other
5 stars 1 forks source link

Comma symbol between clauses can't be handled #89

Open ouankou opened 4 years ago

ouankou commented 4 years ago

It failed to parse the following code due to , symbol between clauses, which is valid syntax.

#pragma omp parallel for private(j,k), collapse(2), lastprivate (jlast, klast)

The original failed test cases are from REX compiler. https://github.com/passlab/rexompiler/blob/master/tests/nonsmoke/functional/CompileTests/OpenMP_tests/collapse.c