Our OSX CI currently uses clang 12 which is failing due to a bug. Fortunately it's easy to work around this bug and we already have an occurrence of this in our codebase.
The best solution would be to move to clang >= 13 as we aim to use C++20 in the future anyway, but for now this fixes the immediate issue.