newed array initailization

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Thu Jan 7 03:30:00 GMT 1999


On Wed, 6 Jan 1999, Fariborz "Skip" Tavakkolian wrote:
> main()
> {
>         char * ptr = new char[6] = {"hello"};
> }

With egcs-2.92.34 19990104 on sparc-sun-solaris2.6 I get
  .../egcs/gcc/expr.c:2500: Internal compiler error in function emit_move_insn
instead, so the problem still exists in current snapshots as well.

Gerald
-- 
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/





More information about the Gcc-bugs mailing list