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

c++/7446: gcc 2.95.3 internal compiler error on compiling "ice.ii"


>Number:         7446
>Category:       c++
>Synopsis:       gcc 2.95.3 internal compiler error on compiling "ice.ii"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 30 11:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     fang@csl.cornell.edu
>Release:        gcc version 2.95.3 [FreeBSD] 20010315 (release)
>Organization:
>Environment:
FreeBSD 4.3-RELEASE #15: Tue Aug 28 16:54:58 EDT 2001  i386
>Description:
internal compiler error reported on compiling "ice.ii"

output:
In file included from ice.cc:4:
ice.h:41: Internal compiler error.
ice.h:41: Please submit a full bug report.
ice.h:41: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.

should report some error about misuse of template?
>How-To-Repeat:
gcc ice.ii
>Fix:
a work around:
in "ice.ii", change in class declaration and uses:
AT<T>::BT
to:
AT<T>::BT<T>

not sure if this adheres to C++ standard... 
but at least gcc doesn't report any errors after this change
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="ice.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ice.ii"

IyAxICJpY2UuY2MiCiAKIAoKIyAxICJpY2UuaCIgMQogCiAKIAogCiAKIAogCgogCiAKIAoKCgpj
bGFzcyBBIHsKcHVibGljOgoJY2xhc3MgQjsKcHJvdGVjdGVkOgoJQiogYjsKfTsKCmNsYXNzIEE6
OkIgewpwdWJsaWM6CglBOjpCKiBuZXh0OwpwdWJsaWM6CglCKEE6OkIqIG4gPSAwICkgeyBuZXh0
ID0gbjsgfQkJCSAKCXZpcnR1YWwgfkIoKSB7IGlmIChuZXh0ICE9IDAgKSBkZWxldGUgbmV4dDsg
fQkgCgp9OwoKdGVtcGxhdGUgPGNsYXNzIFQ+CmNsYXNzIEFUIDogcHVibGljIEEgewpwdWJsaWM6
CgljbGFzcyBCVDsKcHJvdGVjdGVkOgoJQlQqIGZpcnN0OwoKfTsKCnRlbXBsYXRlIDxjbGFzcyBU
PgpjbGFzcyBBVDxUPjo6QlQgOiBwdWJsaWMgQTo6QiB7CQkgCnB1YmxpYzoKCUFUPFQ+OjpCVCog
bmV4dDsKCVQgdmFsOwoKcHVibGljOgoJQlQoQVQ8VD46OkJUKiBuID0gMCApOwoJQlQoY29uc3Qg
VCYgdiwgQVQ8VD46OkJUKiBuID0gMCApOwoJdmlydHVhbCB+QlQoKTsKfTsKCiMgNCAiaWNlLmNj
IiAyCgogCgppbnQgbWFpbihpbnQgYXJnYywgY2hhciogYXJndltdKSB7CgkgCglyZXR1cm4gMDsK
fQo=


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