This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11295] [3.3/3.4 Regression] *reinterpret_cast<std::string *> causes ICE
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2003 22:39:23 -0000
- Subject: [Bug c++/11295] [3.3/3.4 Regression] *reinterpret_cast<std::string *> causes ICE
- References: <20030623155039.11295.jfc@legra.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11295
------- Additional Comments From bangerth at dealii dot org 2003-06-23 22:39 -------
Yes, that's what I meant: you'll have to emulate the byte-pattern of a
usable std::string object. But then you expose yourself to changes in
the internals of the std::string implementation. If you're fine with
that, then so am I :-)
But that's certainly not what we're talking about in this bug report,
I was just answering to Andrew's question about the legality of the
code. It's still the ICE that's the problem.
W.