https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54880
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The assert is meaningful, it is a bug if something is created with one context once and then something tries to change that context to something else. So whatever wants to change that is doing something wrong, or it has been created in a wrong context initially.