https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92933
--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> --- thanks, oddly there's a test case in the test-suite that does something similar, I shall have to investigate what's different in the codegen.