https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121814
--- Comment #12 from liwei <liweifriends at gmail dot com> --- (In reply to Andrew Pinski from comment #11) > (In reply to Andrew Pinski from comment #6) > > Also read > > https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3292r0.html . This > > area is a mess that writing out a pointer to some string and then reading it > > back might actually not work. > > https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2219.htm#q15-can-one-make- > a-usable-copy-of-a-pointer-by-copying-its-representation-bytes-by-user-code- > that-indirectly-computes-the-identity-function-on-those-bytes Then should we remove the corresponding gcc test? https://github.com/gcc-mirror/gcc/blob/41ea9305466ce54027324258aeae9893101941db/libstdc%2B%2B-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc#L104
