[flang-commits] [flang] [flang][OpenMP] Implement iterator that flattens BLOCK constructs (PR #180981)

via flang-commits flang-commits at lists.llvm.org
Wed Feb 11 10:19:59 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/parse-tree.cpp.o</summary>

```
FAILED: tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/parse-tree.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/lib/Parser -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/parse-tree.cpp.o -MF tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/parse-tree.cpp.o.d -o tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/parse-tree.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/parse-tree.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/parse-tree.cpp:13:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:373:12: error: no member named 'Unwrap' in namespace 'Fortran::parser'; did you mean 'llvm::unwrap'?
373 |     return parser::Unwrap<parser::OpenMPLoopConstruct>(c) != nullptr ||
|            ^~~~~~~~~~~~~~
|            llvm::unwrap
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: 'llvm::unwrap' declared here
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/parse-tree.cpp:13:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:373:20: error: 'unwrap' does not name a template but is followed by template arguments
373 |     return parser::Unwrap<parser::OpenMPLoopConstruct>(c) != nullptr ||
|                    ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: non-template declaration found by name lookup
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/parse-tree.cpp:13:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:374:9: error: no member named 'Unwrap' in namespace 'Fortran::parser'; did you mean 'llvm::unwrap'?
374 |         parser::Unwrap<parser::DoConstruct>(c) != nullptr;
|         ^~~~~~~~~~~~~~
|         llvm::unwrap
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: 'llvm::unwrap' declared here
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/parse-tree.cpp:13:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:374:17: error: 'unwrap' does not name a template but is followed by template arguments
374 |         parser::Unwrap<parser::DoConstruct>(c) != nullptr;
|                 ^     ~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: non-template declaration found by name lookup
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
4 errors generated.
```
</details>
<details>
<summary>tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-utils.cpp.o</summary>

```
FAILED: tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-utils.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/lib/Parser -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-utils.cpp.o -MF tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-utils.cpp.o.d -o tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-utils.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/openmp-utils.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/openmp-utils.cpp:13:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:373:12: error: no member named 'Unwrap' in namespace 'Fortran::parser'; did you mean 'llvm::unwrap'?
373 |     return parser::Unwrap<parser::OpenMPLoopConstruct>(c) != nullptr ||
|            ^~~~~~~~~~~~~~
|            llvm::unwrap
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: 'llvm::unwrap' declared here
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/openmp-utils.cpp:13:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:373:20: error: 'unwrap' does not name a template but is followed by template arguments
373 |     return parser::Unwrap<parser::OpenMPLoopConstruct>(c) != nullptr ||
|                    ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: non-template declaration found by name lookup
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/openmp-utils.cpp:13:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:374:9: error: no member named 'Unwrap' in namespace 'Fortran::parser'; did you mean 'llvm::unwrap'?
374 |         parser::Unwrap<parser::DoConstruct>(c) != nullptr;
|         ^~~~~~~~~~~~~~
|         llvm::unwrap
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: 'llvm::unwrap' declared here
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/openmp-utils.cpp:13:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:374:17: error: 'unwrap' does not name a template but is followed by template arguments
374 |         parser::Unwrap<parser::DoConstruct>(c) != nullptr;
|                 ^     ~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: non-template declaration found by name lookup
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
4 errors generated.
```
</details>
<details>
<summary>tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/canonicalize-do.cpp.o</summary>

```
FAILED: tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/canonicalize-do.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/lib/Semantics -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/canonicalize-do.cpp.o -MF tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/canonicalize-do.cpp.o.d -o tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/canonicalize-do.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/canonicalize-do.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/canonicalize-do.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:373:12: error: no member named 'Unwrap' in namespace 'Fortran::parser'; did you mean 'llvm::unwrap'?
373 |     return parser::Unwrap<parser::OpenMPLoopConstruct>(c) != nullptr ||
|            ^~~~~~~~~~~~~~
|            llvm::unwrap
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: 'llvm::unwrap' declared here
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/canonicalize-do.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:373:20: error: 'unwrap' does not name a template but is followed by template arguments
373 |     return parser::Unwrap<parser::OpenMPLoopConstruct>(c) != nullptr ||
|                    ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: non-template declaration found by name lookup
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/canonicalize-do.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:374:9: error: no member named 'Unwrap' in namespace 'Fortran::parser'; did you mean 'llvm::unwrap'?
374 |         parser::Unwrap<parser::DoConstruct>(c) != nullptr;
|         ^~~~~~~~~~~~~~
|         llvm::unwrap
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: 'llvm::unwrap' declared here
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/canonicalize-do.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:374:17: error: 'unwrap' does not name a template but is followed by template arguments
374 |         parser::Unwrap<parser::DoConstruct>(c) != nullptr;
|                 ^     ~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: non-template declaration found by name lookup
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
4 errors generated.
```
</details>
<details>
<summary>tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-parsers.cpp.o</summary>

```
FAILED: tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-parsers.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/lib/Parser -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-parsers.cpp.o -MF tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-parsers.cpp.o.d -o tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/openmp-parsers.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/openmp-parsers.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/openmp-parsers.cpp:18:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:373:12: error: no member named 'Unwrap' in namespace 'Fortran::parser'; did you mean 'llvm::unwrap'?
373 |     return parser::Unwrap<parser::OpenMPLoopConstruct>(c) != nullptr ||
|            ^~~~~~~~~~~~~~
|            llvm::unwrap
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: 'llvm::unwrap' declared here
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/openmp-parsers.cpp:18:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:373:20: error: 'unwrap' does not name a template but is followed by template arguments
373 |     return parser::Unwrap<parser::OpenMPLoopConstruct>(c) != nullptr ||
|                    ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: non-template declaration found by name lookup
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/openmp-parsers.cpp:18:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:374:9: error: no member named 'Unwrap' in namespace 'Fortran::parser'; did you mean 'llvm::unwrap'?
374 |         parser::Unwrap<parser::DoConstruct>(c) != nullptr;
|         ^~~~~~~~~~~~~~
|         llvm::unwrap
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: 'llvm::unwrap' declared here
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Parser/openmp-parsers.cpp:18:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:374:17: error: 'unwrap' does not name a template but is followed by template arguments
374 |         parser::Unwrap<parser::DoConstruct>(c) != nullptr;
|                 ^     ~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: non-template declaration found by name lookup
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
4 errors generated.
```
</details>
<details>
<summary>tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/rewrite-parse-tree.cpp.o</summary>

```
FAILED: tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/rewrite-parse-tree.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/lib/Semantics -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/rewrite-parse-tree.cpp.o -MF tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/rewrite-parse-tree.cpp.o.d -o tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/rewrite-parse-tree.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/rewrite-parse-tree.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/rewrite-parse-tree.cpp:12:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:373:12: error: no member named 'Unwrap' in namespace 'Fortran::parser'; did you mean 'llvm::unwrap'?
373 |     return parser::Unwrap<parser::OpenMPLoopConstruct>(c) != nullptr ||
|            ^~~~~~~~~~~~~~
|            llvm::unwrap
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: 'llvm::unwrap' declared here
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/rewrite-parse-tree.cpp:12:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:373:20: error: 'unwrap' does not name a template but is followed by template arguments
373 |     return parser::Unwrap<parser::OpenMPLoopConstruct>(c) != nullptr ||
|                    ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: non-template declaration found by name lookup
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/rewrite-parse-tree.cpp:12:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:374:9: error: no member named 'Unwrap' in namespace 'Fortran::parser'; did you mean 'llvm::unwrap'?
374 |         parser::Unwrap<parser::DoConstruct>(c) != nullptr;
|         ^~~~~~~~~~~~~~
|         llvm::unwrap
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: 'llvm::unwrap' declared here
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/rewrite-parse-tree.cpp:12:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:374:17: error: 'unwrap' does not name a template but is followed by template arguments
374 |         parser::Unwrap<parser::DoConstruct>(c) != nullptr;
|                 ^     ~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/MemoryBuffer.h:293:1: note: non-template declaration found by name lookup
293 | DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef)
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CBindingWrapping.h:20:14: note: expanded from macro 'DEFINE_SIMPLE_CONVERSION_FUNCTIONS'
20 |   inline ty *unwrap(ref P) {                            \
|              ^
4 errors generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/180981


More information about the flang-commits mailing list