This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

static_cast<const char *>(x) -- bugreport


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/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]