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

c++/731: g++ 2.96: numeric_limits hack gives ICE-on-illegal-code



>Number:         731
>Category:       c++
>Synopsis:       g++ 2.96: numeric_limits hack gives ICE-on-illegal-code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 03 07:56:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     John Abbott
>Release:        gcc version 2.96 20000731 (Red Hat Linux 7.0)
>Organization:
>Environment:
Linux poly.dima.unige.it 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686 unknown

(Pentium processor)
>Description:
ZZ1.C:5: `numeric_limits' is not a template
ZZ1.C:5: template class without a name
ZZ1.C:11: `numeric_limits' is not a template
ZZ1.C:15: warning: ISO C++ prohibits anonymous structs
ZZ1.C:15: an anonymous union cannot have function members
ZZ1.C:15: abstract declarator `{anonymous struct}' used as declaration
ZZ1.C:15: namespace-scope anonymous aggregates must be static
ZZ1.C: In function `bool convert (long int &, long int &)':
ZZ1.C:20: `numeric_limits' undeclared (first use this function)
ZZ1.C:20: (Each undeclared identifier is reported only once for each
function it appears in.)
ZZ1.C:20: parse error before `::'
ZZ1.C:24: Internal error #122.
ZZ1.C:24: Internal compiler error in finish_function, at
../gcc/cp/decl.c:14422
>How-To-Repeat:
g++ -Wall -pedantic -I. -c ZZ1.C
>Fix:
???
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="ZZ1.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ZZ1.C"

CiNpbmNsdWRlIDxsaW1pdHMuaD4KCnRlbXBsYXRlPGNsYXNzIFQ+IGNsYXNzIG51bWVyaWNfbGlt
aXRzPFQ+CnsKIHB1YmxpYzoKICBzdGF0aWMgY29uc3QgYm9vbCBpc19zcGVjaWFsaXplZCA9IGZh
bHNlOwp9OwoKY2xhc3MgbnVtZXJpY19saW1pdHM8bG9uZz4KewogIHN0YXRpYyBjb25zdCBib29s
IGlzX3NwZWNpYWxpemVkID0gdHJ1ZTsKICBpbmxpbmUgc3RhdGljIGxvbmcgbWluKCkgeyByZXR1
cm4gTE9OR19NSU47IH0KICBpbmxpbmUgc3RhdGljIGxvbmcgbWF4KCkgeyByZXR1cm4gTE9OR19N
QVg7IH0KfTsKCgpib29sIGNvbnZlcnQobG9uZyYgZGVzdCwgbG9uZyYgc3JjKQp7CiAgaWYgKHNy
YyA+IG51bWVyaWNfbGltaXRzOjptYXg8bG9uZz4oKSB8fCBzcmMgPCBudW1lcmljX2xpbWl0czo6
bWluPGxvbmc+KCkpCiAgICByZXR1cm4gZmFsc2U7CiAgZGVzdD1zcmM7CiAgcmV0dXJuIHRydWU7
Cn0KCg==

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