c++/447: Internal error on a new[]
wouter@users.sourceforge.net
wouter@users.sourceforge.net
Mon Aug 7 02:36:00 GMT 2000
>Number: 447
>Category: c++
>Synopsis: Internal error on a new[]
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 07 02:36:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: W.C.A. Wijngaards
>Release: 2.95.2
>Organization:
>Environment:
Solaris
>Description:
gcc -c -o out/SOLARIS/SPARC/debug/polyset.o libs/csengine/basic/polyset.cpp -Wall -fno-rtti -g3 -gstabs -DNO_ASSEMBLER -DCS_DEBUG -I. -I./apps -I./include -I./libs -I./plugins -I./support -I/usr/local/include -Ilibs/zlib
libs/csengine/basic/polyset.cpp: In method `void csPolygonSet::DrawPolygonArrayDPM(csPolygonInt **, int, csRenderView *, bool)':
libs/csengine/basic/polyset.cpp:496: Internal compiler error.
libs/csengine/basic/polyset.cpp:496: Please submit a full bug report.
libs/csengine/basic/polyset.cpp:496: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
performing:
gcc -E -o bla.ii (same line as above)
and gcc -c -o bla.o bla.ii
will compile nicely :(
>How-To-Repeat:
I am afraid you will need to download the engine Crystal Space project,
from it's sourceforge sourceforge.net/projects/crystal CVS
'make csengine' fails.
I have a report that it works on Linux.
>Fix:
it errored in line 'mesh.normal = '...
I swapped mesh.normal=... mesh.plane=... lines and it worked
again...
mesh.master_mat_handle = NULL;
mesh.polygons = new csPolygonDPM [GetNumPolygons ()];
mesh.mat_handle = new iMaterialHandle* [GetNumPolygons ()];
mesh.plane = new G3DTexturePlane [GetNumPolygons ()];
mesh.normal = new csPlane3 [GetNumPolygons ()];
mesh.poly_texture = new iPolygonTexture* [GetNumPolygons ()];
for (i = 0 ; i < GetNumPolygons () ; i++)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list