c++/1000: <limits> problem, ICE on legal

abbott@dima.unige.it abbott@dima.unige.it
Wed Dec 6 09:06:00 GMT 2000


>Number:         1000
>Category:       c++
>Synopsis:       <limits> problem, ICE on legal
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 06 09:06:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     John Abbott
>Release:        GNU C++ version 2.96 20000731 (Red Hat Linux 7.0)
>Organization:
>Environment:
uname -a
Linux poly.dima.unige.it 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686 unknown
>Description:
Attempting to compile the attached file produces the following
error reports, ending with an ICE..

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 -lang-c++ -D__GNUG__=2 -trigraphs\
 -$ -D__STRICT_ANSI__ -v -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__\
=0 -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -Wall -p\
edantic -Acpu(i386) -Amachine(i386) -D__i386 -D__i386__ -D__tune_i386__ bug2.C \
bug2.ii
GNU CPP version 2.96 20000731 (Red Hat Linux 7.0) (cpplib)
 (i386 Linux/ELF)
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++-3
 /usr/local/include
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1plus bug2.ii -quiet -dumpbase bug2.\
C -ansi -Wall -pedantic -ansi -version -o bug2.s
GNU C++ version 2.96 20000731 (Red Hat Linux 7.0) (i386-redhat-linux) compiled \
by GNU C version 2.96 20000731 (Red Hat Linux 7.0).
bug2.C: In function `double mantissa (const ZZ &)':
bug2.C:41: `pow' undeclared (first use this function)
bug2.C:41: (Each undeclared identifier is reported only once for each
function it appears in.)
bug2.C:38: warning: unused variable `long int log2'
bug2.C:39: warning: unused variable `long int w'
bug2.C:42: Internal compiler error in subst_stack_regs_pat, at
reg-stack.c:1395
>How-To-Repeat:
g++ -v -save-temps -Wall -pedantic -ansi bug2.C
>Fix:
Unknown to me.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug2.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug2.C"

CnRlbXBsYXRlPGNsYXNzIFQ+IGNsYXNzIG51bWVyaWNfbGltaXRzCnsKIHB1YmxpYzoKICBzdGF0
aWMgY29uc3QgYm9vbCBpc19zcGVjaWFsaXplZCA9IGZhbHNlOwp9OwoKY2xhc3MgbnVtZXJpY19s
aW1pdHM8bG9uZz4KewpwdWJsaWM6CiAgc3RhdGljIGNvbnN0IGJvb2wgaXNfc3BlY2lhbGl6ZWQg
PSB0cnVlOwogIHN0YXRpYyBjb25zdCBpbnQgZGlnaXRzID0gMzI7Cn07CgpjbGFzcyBudW1lcmlj
X2xpbWl0czxkb3VibGU+CnsKcHVibGljOgogIHN0YXRpYyBjb25zdCBib29sIGlzX3NwZWNpYWxp
emVkID0gdHJ1ZTsKICBzdGF0aWMgY29uc3QgaW50IGRpZ2l0cyA9IDUyOwp9OwoKZXh0ZXJuIGxv
bmcgbXB6X3NpemVpbmJhc2UobG9uZyxpbnQpOwpleHRlcm4gZG91YmxlIG1wel9nZXRfZChsb25n
KTsKCmNsYXNzIFpaCnsKcHJpdmF0ZToKICBsb25nIHJlcDsKCnB1YmxpYzoKICBmcmllbmQgZG91
YmxlIG1hbnRpc3NhKGNvbnN0IFpaJiBuKTsKfTsKCgpkb3VibGUgbWFudGlzc2EoY29uc3QgWlom
IG4pCnsKICBzdGF0aWMgWlogbWFudDsKICBsb25nIGxvZzIgPSBtcHpfc2l6ZWluYmFzZShuLnJl
cCwgMik7CiAgbG9uZyB3ID0gbnVtZXJpY19saW1pdHM8bG9uZz46OmRpZ2l0czsKICBsb25nIG0g
PSBudW1lcmljX2xpbWl0czxkb3VibGU+OjpkaWdpdHM7CiAgcmV0dXJuIG1wel9nZXRfZChtYW50
LnJlcCkvcG93KDIuMCwgbSk7Cn0K


More information about the Gcc-bugs mailing list