Workaround for clang bugs