https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116064
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- By the way Xalan even upstream still has this bug. https://github.com/apache/xalan-c/blob/c326619da4813acfc845c2830d904a4860f9afe1/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp#L323 They do have a jira but there does not look like there is much work being done on the project either. (https://issues.apache.org/jira/issues/ ).