This is the mail archive of the gcc@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]

ICE in template allocation


I was trying to find a way to help duplicate the problem I'm seeing on 
OpenServer COFF when building stdexcepti.cc when I see lines in the
.s like the following:

        .def    rebind<_Tp1>;   .scl    10;     .type   010;    .size   -1;
.endef
        .def    .eos;   .val    -1;     .scl    102;    .tag    rebind<_Tp1>;


I could not make the Linux native compiler emit the problem code.  It seems
to be coff-debugging specific.

Granted, this is sort of funky, but I went to a x86-pc-linux system and did:

 /play/egcs/configure --target=i386-coff --host=i386-coff 
 cd gcc
 make LANGUAGES=c++

./xgcc --save-temps -B./ -c -g2 -O2  -fno-implicit-templates   -I/play//egcs/libstdc++ -I/play/egcs/libstdc++/stl -I/play/libio -I/play/egcs/libstdc++/../libio -nostdinc++  /play/egcs/libstdc++/stdexcepti.cc

/play/egcs/libstdc++/stl/stl_alloc.h: In instantiation of `__default_alloc_template<true,0>':
/play/egcs/libstdc++/stl/stl_alloc.h:738:   instantiated from here
In file included from /play/egcs/libstdc++/stl/alloc.h:21,
                 from /play/egcs/libstdc++/std/bastring.h:39,
                 from /play/egcs/libstdc++/string:6,
                 from /play/egcs/libstdc++/stdexcept:36,
                 from /play/egcs/libstdc++/stdexcepti.cc:8:
/play/egcs/libstdc++/stl/stl_alloc.h:738: Internal compiler error.
/play/egcs/libstdc++/stl/stl_alloc.h:738: Please submit a full bug report to `egcs-bugs@cygnus.com'.


I don't know if this is related to the problem I'm seeing, but
the presence of _Tp1 in line 738 of stl_alloc.h seems incriminating.

My next step, I suppose, is to turn enable COFF debugging generation
in Linux native and see if I can see it in that assembly.


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