This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
static_cast<const char *>(x) -- bugreport
- To: egcs-bugs at cygnus dot com
- Subject: static_cast<const char *>(x) -- bugreport
- From: erikyyy at studbox dot uni-stuttgart dot de
- Date: Fri, 23 Jan 1998 10:44:50 +0100 (CET)
- Reply-To: erikyyy at studbox dot uni-stuttgart dot de
hi
% g++ --version
% egcs-2.90.23 980102 (egcs-1.0.1 release)
---------------- snip
#include <string>
int main()
{
string x("jsekfh");
return 0;
const char *u = static_cast<const char *>(x);
u++;
};
-------------------- snip
% g++ -O0 -ggdb -Wall -Werror -Dkickwarn -D_REENTRANT -c comptest.cpp
-o comptest.o
comptest.cpp: In function `int main()':
comptest.cpp:7: Internal compiler error.
comptest.cpp:7: Please submit a full bug report to `egcs-bugs@cygnus.com'.
here is the bug report.
i know my code is stupid.
and this error is no problem to me. i know that i have to use x.data()
instead.
but you said to mail me, so here is your report.
byebye
& EXCEPTIONS WORK ! :-) YES. this is why i switched to egcs.
--
EMAIL: erikyyy@studbox.uni-stuttgart.de
thieleek@tick.informatik.uni-stuttgart.de \\\\
erik@unterland.de o `QQ'_
IRC: erikyyy / __8
WWW: http://escape.unterland.de/~erik/ ' `
http://wwwcip.rus.uni-stuttgart.de/~inf24628/
http://tick.informatik.uni-stuttgart.de/~thieleek/