ldionne wrote: This seems reasonable. I read the discussion about the size of the member but I think this is unlikely to change much -- plus I think the compiler should be able to diagnose in case the string becomes smaller and we'd be copying from a past-the-end location into the data structure: https://godbolt.org/z/qP736q5je
Clang doesn't warn right now but GCC does. I filed https://github.com/llvm/llvm-project/issues/72455 about that. https://github.com/llvm/llvm-project/pull/72043 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits