Work around AMD compiler bug leading to failed targets