Don't use unnamed local enums as template arguments.
Fixes -Werror bootstrap.