[NFC][flang] Added deduction guide for StaticDescriptor class. (#131690)

I keep getting these warnings when building with clang-17:
`warning: 'StaticDescriptor' may not intend to support class template
argument deduction [-Wctad-maybe-unsupported]`

This change should help avoiding them.
This commit is contained in:
Slava Zakharin 2025-03-18 07:58:35 -07:00 committed by GitHub
parent 127eb39a8c
commit 02b4522358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -481,5 +481,8 @@ private:
char storage_[byteSize]{};
};
// Deduction guide to avoid warnings from older versions of clang.
StaticDescriptor() -> StaticDescriptor<maxRank, false, 0>;
} // namespace Fortran::runtime
#endif // FLANG_RT_RUNTIME_DESCRIPTOR_H_