We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 498f108 commit 119e9d5Copy full SHA for 119e9d5
flang/lib/Semantics/check-omp-structure.cpp
@@ -4718,7 +4718,12 @@ void OmpStructureChecker::CheckTraitSetSelector(
4718
CheckTraitSelectorList(traits);
4719
4720
for (const parser::OmpTraitSelector &trait : traits) {
4721
- auto &[traitName, maybeProps]{trait.t};
+ // Don't use structured bindings here, because they cannot be captured
4722
+ // before C++20.
4723
+ auto &traitName = std::get<parser::OmpTraitSelectorName>(trait.t);
4724
+ auto &maybeProps =
4725
+ std::get<std::optional<parser::OmpTraitSelector::Properties>>(
4726
+ trait.t);
4727
4728
// Check allowed traits
4729
common::visit( //
0 commit comments