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]
Other format: [Raw text]

[Bug c++/11463] New: bugging on this: "strheaders = new string[headers.size ()];"


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11463

           Summary: bugging on this: "strheaders = new string[headers.size
                    ()];"
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bourdin at imerir dot com
                CC: gcc-bugs at gcc dot gnu dot org

The line 92 in genio.C in the code of sar3D:
 strheaders = new string[headers.size ()];
makes gcc saying:
g++ -g -Wall -c genio.C -I/usr/X11R6/include -I/usr/include/gltt -I.
-I/usr/local/include -I/usr/local/include/gltt
genio.C: In method `genio::genio()':
genio.C:92: Internal compiler error.
genio.C:92: Please submit a full bug report.
genio.C:92: Internal compiler error:
genio.C:92: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make: *** [genio.o] Erreur 1


gcc -v gives me:
gcc -v
Lecture des spécification à partir de /usr/lib/gcc-lib/i386-linux/3.2.2/specs
Configuré avec: ../src/configure -v
--enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --disable-__cxa_atexit
--enable-java-gc=boehm --enable-objc-gc i386-linux
Modèle de thread: posix
version gcc 3.2.2

The system is: 
 uname -a
Linux PBo 2.4.18 #1 Mon Mar 24 11:26:59 CET 2003 i686 unknown
(Linux Debian) 

When I just replace the line 92 with this 21 lines it goes well:
 long debug =  headers.size ();
 strheaders = new string[ debug ];
So I suppose it must be something like a parsing error ?

I wanted to join the genio.ii file... but I don't know how to do it ?
If it is needed just mail me and I'll send it back.

Of course you can get the code of sar3D at:
http://sar3d.sourceforge.net/downloads/sar3dtut-1.0.1.linux.bin.tgz

Hopping it could helps...
Pierre.


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