c++/424: strange addition error

adam@myrealbox.com adam@myrealbox.com
Sun Jul 23 16:46:00 GMT 2000


>Number:         424
>Category:       c++
>Synopsis:       strange addition error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 23 16:46:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Adam Goode
>Release:        gcc version 2.95.2 20000220 (Debian GNU/Linux)
>Organization:
>Environment:
Linux lincoln3 2.2.17 #1 Fri Jul 21 22:52:51 EDT 2000 i686 unknown
>Description:
The command:
c++ -fguiding-decls -fno-exceptions -fno-rtti  testBasicRelation.C -fimplicit-templates    -fpic -g -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-unused -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -finline-functions   -DERROR_CHECKING -DFREEVERSION -DNOREPOS -DTIME_WITH_SYS_TIME=1 -DTWO_ARG_GETTIME=1 -DWORDS_LITTLEENDIAN=1  -DFREEVERSION -UIV_INSTALLED -I/home/adam/compvision/v4.1.2/GeneralUtility -I/home/adam/compvision/v4.1.2/GeneralUtility/Tests -I/home/adam/compvision/v4.1.2/COOL -I/home/adam/compvision/v4.1.2/Numerics -I/home/adam/compvision/v4.1.2/Smallg++   -c -o Linux2/testBasicRelation.o

Gives this error:

In file included from TestType.h:4,
                 from testBasicRelation.C:70:
/home/adam/compvision/v4.1.2/Smallg++/hashtable.h: In function `long unsigned int __stl_next_prime(long unsigned int)':
/home/adam/compvision/v4.1.2/Smallg++/hashtable.h:277: Internal compiler error.
/home/adam/compvision/v4.1.2/Smallg++/hashtable.h:277: Please submit a full bug report.
/home/adam/compvision/v4.1.2/Smallg++/hashtable.h:277: See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
make: *** [Linux2/testBasicRelation.o] Error 1
>How-To-Repeat:
Line 277 looks like this: const unsigned long* last = __stl_prime_list + __stl_num_primes;
>Fix:
Strangely enough if I change line 277 to say const unsigned long* last = 0 + __stl_prime_list + __stl_num_primes;
then everything works fine.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="testBasicRelation.ii.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testBasicRelation.ii.gz"



More information about the Gcc-prs mailing list