https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78216
--- Comment #6 from Adam Ryan <gcc.gnu.org at ajryansolutions dot co.uk> --- After investigating this further I have found that the issue I encountered had a different root cause and I've created a new PR for it here https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118265.