Work around Cray compiler bug

See bug 1184