libinfinity doesn't compile with clang 425

Closes #18726.