https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84667
Elmar Stellnberger <estellnb at elstel dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #11 from Elmar Stellnberger <estellnb at elstel dot org> --- Why does my gcc not report uninitialized variables. Is the version too old (6.3.0 20170516)? Still I do not know how g++ can convert an xstr_const into an xstr_mutable. That should be impossible as stated in the comment above. Thus the fact that correcting an error reported by clang has made the program behave correctly under g++ is simply astonishing. However I have no idea why g++ behaves like this.